Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[solved] Compare article publishing status
Forgive me, I’m having a ‘moment’ and the answer is probably obvious but I can’t figure it out.
With 4.7.x we can use this construct <txp:article status />
to extract both sticky and live articles in a single list. Is there a way in the form/container to detect which type of article we’re dealing with, live or sticky, so we can take action accordingly?
I can’t see it exposed in thisarticle
so smd_if can’t get at it. I must be missing something. If not… feature request?
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Offline
Re: [solved] Compare article publishing status
etc wrote #314013:
Weird, it should be there?
Ha! Note to self, check the status field in article context ($thisarticle
), not section list context ($pretext
) which is the page’s HTTP status.
You’re right, knew I was missing something. Thank you.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline