Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Older/newer with parent/child nested categories
I use a nested category structure to organise my content.
I need the category pages to show articles in child categories in addition to the current category.
I can achieve this using the article_custom
tag and the parent
attribute, but then the older
and newer
tags don’t work, so I have no pagination feature.
Could anybody suggest a workaround for this issue please?
I’m starting to think that the nested category structure is not a good way of organising my content!
Many thanks
Offline
Re: Older/newer with parent/child nested categories
You should be able to include also child categories in <txp:article />
with depth
attribute:
<txp:article depth="1" /> <!-- or more -->
If this does not work, <txp:article_custom pageby />
should be able to paginate.
Offline
Re: Older/newer with parent/child nested categories
That does work, many thanks.
The depth
attribute isn’t in the documentation but will be very useful to me going forward.
Offline
Offline