The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

AxKit::App::TABOO::XSP::Article - Article management tag library for TABOO

SYNOPSIS

Add the story: namespace to your XSP <xsp:page> tag, e.g.:

    <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

DESCRIPTION

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.

TODO

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.

Tag Reference

<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.

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.

<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.

FORMALITIES

See AxKit::App::TABOO.