Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-16 18:33:47

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

ras_set_article_status: Set article status from within an article form

ras_set_article_status_v4.0.6
Info Link

This plugin has tested well for me. I’ve gotten no other feedback about it.

Given the form named setstatus currently contained a ras_set_article_status tag with the status attribute set to “Live” all articles returned with the category search “pendingtolive” (those articles set to Pending will be returned) will have there status changed to live.

Using sections to protect access to links to initiate this kind of search could be accomplished, the drawback with this approach appears to be the need to accomplish this thru the article form, and therefore thru the front of the site.

Any ideas?

One example of potential usage:

<txp:if_category name="pendingtolive">
<txp:article status="Pending" form="setstatus" limit="1000"/>
<txp:else />
<txp:article limit="5" />
</txp:if_category>

Offline

#2 2008-03-17 11:44:11

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: ras_set_article_status: Set article status from within an article form

Would this still work if status will only take live and sticky as valid attribute values in the future?

Offline

#3 2008-03-17 13:54:51

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: ras_set_article_status: Set article status from within an article form

It would for those values when set as attributes.

Offline

#4 2008-03-17 14:03:54

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: ras_set_article_status: Set article status from within an article form

I very much doubt it would still work if txp:article no longer returns anything but live/sticky articles.

Offline

#5 2008-03-17 14:56:20

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: ras_set_article_status: Set article status from within an article form

Ok – I see your point, true, it would only be able to see returned articles. That would limit things.

Offline

Board footer

Powered by FluxBB