AxKit::App::TABOO::XSP::Comment - News comment management tag library for TABOO
Add the comment: namespace to your XSP
<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):
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.
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
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.
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.
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
commentpath attributes or child elements.