Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
<txp:article status="live, sticky" />, or lack thereof
This topic seems to come up every once in a while. Working on my new site was the first time it’s really caused a problem, though.
I need to display a number of articles, some of them sticky and some of them live. This is easy enough to do by using two tags (eg, <txp:article status="live" /><txp:article status="live" />
). But I need to display all the articles in the order posted, which means that some sticky articles need to appear after some of the live articles. Supporting multiple statuses in <txp:article />
would solve this, except this feature doesn’t exist.
Is there a quick and easy solution for this? Because of how stuff is organised on the site, I need to mix sticky and live posts — using categories to separate the posts isn’t an option.
Offline
Re: <txp:article status="live, sticky" />, or lack thereof
Disregard. I managed to use a custom field with article_custom to separate out the content I needed.
Offline
#3 2012-11-01 23:13:56
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: <txp:article status="live, sticky" />, or lack thereof
makss’ aks_article supports multiple stati in one tag.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline