Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-10-23 16:43:40
- Logoleptic
- Plugin Author
- From: Kansas, USA
- Registered: 2004-02-29
- Posts: 482
Article tags, outputting multiple statuses (stati?)
It would be great if the article
and article_custom
tags could take a comma-separated list of values for the status
attribute. For example, I could use the Sticky status to emulate static pages, but still list both sticky and live articles elsewhere like so:
<txp:article_custom section="foo" form="bar" status="live,sticky" />
Offline
Re: Article tags, outputting multiple statuses (stati?)
my and others’ favourite bugbear – and there are more threads on the same topic. There are few things you really do need it for.
TXP Builders – finely-crafted code, design and txp
Offline
#3 2008-10-23 19:46:03
- Logoleptic
- Plugin Author
- From: Kansas, USA
- Registered: 2004-02-29
- Posts: 482
Re: Article tags, outputting multiple statuses (stati?)
I went looking for past feature requests before I posted this, but apparently my Google-Fu failed me.
Still, nice to know I’m not the only one wanting this.
Offline
Re: Article tags, outputting multiple statuses (stati?)
<faultfinder mode>
Btw. If you use status imported as latin word so the plural is status too, but with a different pronunciation: Shoulde be »statuus« (long u). In latin status use u-declination like malus too.
</faultfinder mode>
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
#5 2008-10-24 09:28:09
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Offline
Re: Article tags, outputting multiple statuses (stati?)
Hi Adam,
Do you want to use status="sticky,live"
to output sticky articles first and then live articles. Or to intercalate them as if they were all live articles?
Also, what is impeding you to set those sticky articles to live and also be able to create static (one single article?) section pages? I mean, when you said “i could use sticky status to emulate static pages”, are you talking about using an article on a section frontpage, right?
I can’t visualize the scenario.
Offline
#7 2008-10-24 16:02:40
- Logoleptic
- Plugin Author
- From: Kansas, USA
- Registered: 2004-02-29
- Posts: 482
Re: Article tags, outputting multiple statuses (stati?)
@trenc: Thanks for the tip. My Latin is a bit rusty. ;-)
@redbot: Thanks! I wasn’t aware such a plugin existed.
@Julian: I want to have multiple statuses combined and sorted together, just like any other article list. The reason that the static articles must stay static is to keep them out of the way of a navigation-generating plugin that only lists live articles. I’m using sticky articles to emulate section and category front pages, and don’t want the same article to show up again in the navigation outside that role. Does that explain what I’m after a little better?
Offline
Re: Article tags, outputting multiple statuses (stati?)
Hi Adam,
now I understand :)
Does the navigation-generated plugin let you exclude/filter articles by some criteria (particularly, by a custom field value)?
If it lets you, you could set all articles to live and use the custom field both to exclude the article from navigation and to include them as section/category front pages.
(being you a long-time Txp user and a plug-in author, you may probably already think that possible solution…)
Offline
#9 2008-10-26 04:47:07
- Logoleptic
- Plugin Author
- From: Kansas, USA
- Registered: 2004-02-29
- Posts: 482
Re: Article tags, outputting multiple statuses (stati?)
@Julian: It would be possible to use custom fields here, but I decided against it… for some reason I can no longer remember. I’m, um, sure it must’ve been a good one though. :-\
Offline