Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2018-09-14 09:48:32
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 8,523
- Website
[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
#2 2018-09-14 09:58:49
- etc
- Developer
- Registered: 2010-11-11
- Posts: 3,042
- Website
Offline
#3 2018-09-14 10:08:43
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 8,523
- Website
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
Pages: 1