Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-11-30 13:19:54
- Martina
- New Member
- Registered: 2005-11-17
- Posts: 3
List of titles within a category
Hi!
So… How do I: make a list of Titles (links to articles) within a same category as the displayed article?
Example: I have an article displayed, and at the bottom I would like to have ul-li list of 5 most recent articles which are in the same cetegroy as displayed one.
Thanks.
Offline
Re: List of titles within a category
<code><txp:related_articles limit=“5” break=“li” wraptag=“ul” /></code>
Last edited by colak (2005-11-30 13:30:26)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2005-11-30 14:07:21
- Martina
- New Member
- Registered: 2005-11-17
- Posts: 3
Re: List of titles within a category
Thank you, that is partially working.
It is working on pages which are directly accessing article (for example: http://www.page.dot/article/10/t-rot-buduci-zaposlenik), but not working when showing articles accessed vila link on category (for example: http://www.page.dot/category/CategoryXYZ/ )
Why is that? (i have edited both page templates)
Last edited by Martina (2005-11-30 14:08:25)
Offline
Re: List of titles within a category
The tag only works for an “individual_article” page as it is basing it’s relationship on the category1 or category2 tag of the article. It cannot do this with a list of articles. Having said that, using your example, if you are already looking at a category listing it seems a bit pointless having a related articles list as well as it would simply be doubling up on articles already in the listing. Anyway it won’t work on an “article_list” page. :)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Pages: 1