Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-06-24 18:27:53
- nemozob
- Member
- Registered: 2008-04-15
- Posts: 36
Category link to show full articles, not just list?
The default behavior when clicking on category links (like the ‘filed under’ category links) seems to be to show a list of article titles rather than displaying the full content of the articles. Is there any easy way to change this behavior?
I can see that the form “article_listing” is controlling this but I’d rather not have to copy/paste the article listing code into this and then have to maintain two instances of the same code.
Offline
#2 2008-06-24 18:29:51
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Category link to show full articles, not just list?
If you always want to show the full article, you can replace <txp:excerpt />
in the ‘article_listing’ form with <txp:body />
.
Edit: ah sorry, I did not look at the contents of ‘article_listing’. Hang on a second and I’ll give you a better solution…
Last edited by els (2008-06-24 18:32:46)
Offline
#3 2008-06-24 18:34:52
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Category link to show full articles, not just list?
Okay, on the page template ‘default’ change this tag
<txp:article listform="article_listing" limit="5" />
into
<txp:article form="default" limit="5" />
That should do it.
Offline
#4 2008-06-24 18:43:23
- nemozob
- Member
- Registered: 2008-04-15
- Posts: 36
Re: Category link to show full articles, not just list?
Perfect, thanks. I’m still getting used to how Textpattern works. This makes sense now.
Offline