Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Display Article Category name and recent article list for browsed cat
The site is: http://www.ogametips.com/
I had this working, but now it doesn’t And unfortunately, I do not know when it stopped working, so I don’t know what to revert.
Anyhow, there is probably a better way to make this work. But here is what I want.
Home page:
Some static text at the top, then a list of the top 10 most recent articles with excerpts.
Category Page:
The category name shown at the top, plus a list of the recent articles in the respective category.
What tags do I need to make this work? I prefer not to use plugins for this, but if that is what is needed, then plugins are ok.
Eric
Offline
#2 2005-12-10 12:14:28
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Display Article Category name and recent article list for browsed cat
Something like this on the page template:
<code>
<txp:if_section name=”“>
<txp:if_category></code> (if we are on a category page)<code>
<h2><txp:category title=1 /></h2>
<txp:article form=“yourform” limit=“10” />
<txp:else /></code> (if we are on the home page)<code>
<txp:article status=“sticky” limit=“1” form=“yourform” /></code> (or <code><txp:article id=“xx” /></code>)<code>
<txp:article form=“yourform” limit=“10” />
</txp:if_category>
</txp:if_section>
</code>
Offline
Re: Display Article Category name and recent article list for browsed cat
EXCELLENT! Just what I needed. Much abliged for the quick help.
Eric
Offline