Go to content Go to navigation Go to search

ras_set_article_status · Mar 13, 08:10 pm by Rick


The drawbacks of some conditional approaches to article and article content display keep bringing me back to an old idea whose potential rattles around with me some; that idea would be article status alteration from withing an article form.
The tag for accomplishing this is in the sidebar as ras_set_article_status, the help file at present reads as follows:


Tag ras_set_article_status sets the current article to whatever status is set in the status attribute, which actively alters an article’s Status. It accepts a status attribute which lists article status as follows.

* Draft * Hidden * Pending * Live * Sticky

Default setting Live.

***
As of changeset 2887 this tag can only affect status Sticky and Live, and is very limited in it’s usefulness in the future.
***

These tags are intended to be used in an article form. When used in an article form this tag alters an article’s status on an exit condition basis (an article displayed as Live when the tag is called will display, if it’s status is changed to Pending on that pass it will not display on the next pass.)

Used singly as an article form tag it feels very clumsy, but what can be accomplished with article form “form” and “status” attribute settings when organized with sections, conditional tags, and category usage is extensive.
Adjusting article status allows integration of posting time based conditionals (or any other article based conditional check) to automate display control, with pagination methods that are an inherent design characteristic of Textpattern. This if nothing else has me looking at it again and again.
The potential is greater than it seems at first.


ras_set_article_status_v4.0.6
***
As of changeset 2887 this tag can only affect status Sticky and Live, and is very limited in it’s usefulness in the future.
***


Name
E-mail
http://
Message
  Textile Help