Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-08-06 15:47:20
- WebKat
- Member
- Registered: 2007-01-16
- Posts: 301
column of recent article excerpts from current category or section?
I’d like to have a sidebar on the right that shows the most recent, say, 5 articles in that category (or section, I haven’t decided which is better) with excerpts. I know how to specify a category when showing an article list manually, but I want it to detect what category/section the currently viewed article is in and display the proper list automatically.
There is probably a very simple way to do this, but I edit the txp code so rarely that I forget most of the details between times. Can someone help?
Also, is there a way of having at the bottom a list of links to “related articles” based on tags? Like say the 5 most recent articles with the best keyword match to the one you’re on?
I know these are noob questions but as I said I do this in spurts and forget everything between times :/
—
WebKat
Offline
#2 2008-08-06 16:37:31
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: column of recent article excerpts from current category or section?
Using asy_wondertag:
<txp:asy_wondertag>
<txp:article_custom section="<txp:section />" /> <!-- or category="<txp:category />" -->
</txp:asy_wondertag>
Check chh_related_articles for your second question.
Offline