You are not logged in.
Pages: 1
Hi.
I’m trying to get my head around Live and Sticky articles, and I’m stumbling when it comes to determining the status of an article. What I’d like to do is run a check for if an article has the status of Sticky, like this (bogus tag used):
<txp:if_article_status status=“sticky”>
<p>Article is sticky.</p>
<txp:else />
<p>Article is not sticky.</p>
</txp:if_article_status>
I can’t see anything that might be able to extract the status from an article. How might I go about achieving this?
Thank you in advance.
Offline
<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields
Offline
There are some article fields queryable by TXP’s custom field tags, status is among them:
<txp:if_custom_field name="Status" value="5">Sticky</txp:if_custom_field>.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
I was going to mention that yesterday but stopped myself at the last moment. Since it’s technically a bug (albeit a safe one), relying on it is probably not advised. But practically speaking, it’s not going away any time soon.
Last edited by Bloke (2012-06-25 12:11:48)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern.
Txp Builders – finely-crafted code, design and Txp
Offline
Pages: 1