Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-10-12 17:22:46

ar
Member
From: Nuremberg, Germany
Registered: 2012-03-08
Posts: 45
Website

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

#2 2013-10-12 17:32:45

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

#3 2013-10-12 17:36:33

ar
Member
From: Nuremberg, Germany
Registered: 2012-03-08
Posts: 45
Website

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

Board footer

Powered by FluxBB