NAME
AxKit::App::TABOO::XSP::Story - News story 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/Story"
>
Add this taglib to AxKit (via httpd.conf or .htaccess):
AxAddXSPTaglib AxKit::App::TABOO::XSP::Story
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::Story.
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::Story 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 asked to store certain priviliged fields, it will check the authorization level and throw an exception with a FORBIDDEN
code if not satisfied. If timestamps do not exist, they will be created based on the system clock.
Finally, the Data object is instructed to save itself.
Quirks
There are a few things that I'm not sure how to handle that I've included in this release in an inelegant way. For example, if you want to update an old record with a new storyname (which is not unusual, if for example you don't like the storyname used by the submitter), then you need to include this somehow. For the time being, the <story
> tag takes take the old storyname as a parameter auto-storyname
. Such a tag shouldn't really need to be aware of such things, from an aestetical POW, suggestion on how to do it differently are welcome.
Also quirky is that if the submitterid is not set, it is set to the current username.
FORMALITIES
See AxKit::App::TABOO.