Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

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

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


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 the AxKit::App::TABOO::Data::Comment manpage.

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


Tag Reference

<store/>

It will take whatever data it finds in the the Apache::Request manpage object held by AxKit, and hand it to a new the AxKit::App::TABOO::Data::Comment manpage 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 the AxKit::App::TABOO manpage.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy