Textpattern CMS support forum
[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?
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.