Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
article_custom with status="1" shows articles having status="4"
Hi,
using the following line of code, I would like to output only articles with status=“1” (draft), but articles with status=“4” (live) are being shown:
<txp:article_custom category="music" form="list_articles" pgonly="0" section="artikel" status="1" limit="99" />
Is this a bug or a feature I don’t understand?
Thanks,
Alex
Last edited by ar (2013-10-12 17:31:36)
Offline
Re: article_custom with status="1" shows articles having status="4"
ar wrote:
Is this a bug or a feature I don’t understand?
Feature; all article statuses outside live and sticky are considered private, and only accessible from the admin panel. As the documentation states, article_custom’s status attribute accepts either live
or sticky
as the value (use of numbers works too, but is undocumented).
Last edited by Gocom (2013-10-12 17:35:21)
Offline
Re: article_custom with status="1" shows articles having status="4"
Alright, this makes sense, even if I wouldn’t have used the article list publicly. Thank you.
Last edited by ar (2013-10-12 17:36:47)
Offline