afw_getarticle: Textpattern Plugin · Apr 8, 08:21 PM

This tag works very similarly to article_custom, except that the section and url_title of the article(s) displayed are determined by either POST or GET variables in the URL. Also, the default limit is 1.

Attribute Default Value Status Description
‘limit’ ‘1’ Optional Same as article_custom.

Following fields have no default value and work the same as article_custom:

form, category, keywords, excerpted, status, time, month, author, sort, offset, allowoverride.

Following fields are not availalbe:

*0.1.1* section, id, customfieldname (i think?)

Revisions

0.1.1
*limit* can now be set via GET or POST.
0.1.2
Fixed Security Vulnerabilities.

Download

Download afw_getarticle-0.1.2 here
and install in TextPattern (Admin / Plugins). Be sure to set the plugin to active because all plugins are inactive by default when you install them.

Source Code

Download afw_getarticle-code-0.1.2.zip here
Read the source code in the PHP file for compilation instructions.

Example Usage

For example, the afw_getarticle plugin can access the article at

www.allflashwebsite.com/demo2/my_section/my_url_title 

using this URL instead:

www.allflashwebsite.com/demo2/xml?section=my_section&url_title=my_url_title

Where xml is a section that uses a custom page and form that outputs the article in a custom format.

… for additional Information, the article “Content in Flash and Textpattern: Bridging the Gap with XML” explains How to Output a Textpattern article as XML

— Pickle

---

Comment

Textile Help