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

NAME

AxKit::App::TABOO::XSP::Comment - News comment management tag library for TABOO

SYNOPSIS

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

    <xsp:page
         language="Perl"
         xmlns:xsp="http://apache.org/xsp/core/v1"
         xmlns:comment="http://www.kjetil.kjernsmo.net/software/TABOO/NS/Comment"
    >

Add this taglib to AxKit (via httpd.conf or .htaccess):

  AxAddXSPTaglib AxKit::App::TABOO::XSP::Comment

DESCRIPTION

This XSP taglib provides a single (for now) tag to store information related to news stories, as it communicates with TABOO Data objects, particulary AxKit::App::TABOO::Data::Comment.

Apache::AxKit::Language::XSP::SimpleTaglib has been used to write this taglib.

Tag Reference

<store/>

It will take whatever data it finds in the Apache::Request object held by AxKit, and hand it to a new AxKit::App::TABOO::Data::Comment object, which will use whatever data it finds useful. It will not store anything unless the user is logged in and authenticated with an authorization level. If an authlevel is not found in the user's session object, it will throw an exceptions with an AUTH_REQUIRED code.

If TABOOAkismetKey is set (and spammers will make you want this really fast), it will check the Akismet anti-spam system if the user has an authlevel less than 2, and return a FORBIDDEN if it is deemed to be spam.

Finally, the Data object is instructed to save itself.

If successful, it will return a store element in the output namespace with the number 1.

<this-comment/>

Will return an XML representation of the data submitted in the last request, enclosed in a comment-submission element. Particularly useful for previewing a submission.

<get-comment/>

Will return an XML representation of the data for a previously saved comment, enclosed in a comment-loaded element. It needs to get the comment identified by storyname, sectionid and commentpath attributes or child elements.

FORMALITIES

See AxKit::App::TABOO.