AxKit::App::TABOO::XSP::Article - Article management tag library for TABOO
Add the story: namespace to your XSP <xsp:page> tag, e.g.:
<xsp:page>
<xsp:page language="Perl" xmlns:xsp="http://apache.org/xsp/core/v1" xmlns:story="http://www.kjetil.kjernsmo.net/software/TABOO/NS/Article" >
Add this taglib to AxKit (via httpd.conf or .htaccess):
AxAddXSPTaglib AxKit::App::TABOO::XSP::Article
This XSP taglib provides tags to store information related to news stories and to fetch and return XML representations of that data, as it communicates with TABOO Data objects, particulary AxKit::App::TABOO::Data::Article.
Apache::AxKit::Language::XSP::SimpleTaglib has been used to write this taglib.
This taglib will be documented further in upcoming releases. While there is quite a lot of working stuff here, it also has some bad issues.
<store-required/>
This tag will check and store the data from the required fields. It will check for either uploaded files, and the MIME types of that, or take plain text and save it to a local file. It doesn't do many security checks yet.
If the save was successful, it will redirect to /articles/edit, so that the submitter can continue editing of non-required fields. To control where it redirects to, you should supply an attribute or child element redirect containing the URL of the page to redirect to and retval, with the HTTP return value. The latter defaults to 302.
/articles/edit
redirect
retval
If something went wrong, the tag will return a nodelist problem. The nodelist will contain the data store name of the field(s) that weren't present, or nosave if the save itself failed.
problem
nosave
<get-article filename="foo" primcat="bar"/>
This tag will get an XML representation of the article identified with filename and primcat. The parameters may be given as attributes or child elements.
filename
primcat
See AxKit::App::TABOO.
To install AxKit::App::TABOO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AxKit::App::TABOO
CPAN shell
perl -MCPAN -e shell install AxKit::App::TABOO
For more information on module installation, please visit the detailed CPAN module installation guide.