Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
section/category listing/category landing page with article list
I’m sitting on a logical problem with practical implications. Hope that someone can enlighten me on that one.
The following problem: I have a “products” section that should as its starting content list brands grouped by the kind of products they offer. Once clicking on a brand name, one should land on a “brand page” with info and a list of all products for this brand. The listed product items would them lead to product pages (articles).
What I am stuck with at the moment is: On the “product” section I check if we deal with an article list and then if there is an empty category, and just deliver a list of “brands”(categories “brand1”, “brand2”, etc.). Then I check for <txp:if_category name="brand1">
for instance and if this is so, I give it some content (about the brand) from a form which I call and then a list of all related product articles (articles from category=“brand1”). When one then clicks on an product link, one is taken to the article/product page. Everything remains within the “Products” section and this is good.
It does work, but I do not have a real “brand page” article and thus a customer can not edit the contents easily.
Can anyone suggest a better logic/organisation in this case?
Thanks in advance!
Offline
#2 2009-04-10 23:15:03
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: section/category listing/category landing page with article list
datorhaexa wrote:
Then I check for
<txp:if_category name="brand1">
for instance and if this is so, I give it some content (about the brand) from a form which I call
…
It does work, but I do not have a real “brand page” article and thus a customer can not edit the contents easily.
If you moved that content from the forms to sticky articles (in the right section and category), wouldn’t that solve your problem?
<txp:if_category>
<txp:article status="sticky" />
// here your article tag for the related product articles
</txp:if_category>
Offline