The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

SYNOPSIS

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

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

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

  AxAddXSPTaglib AxKit::App::TABOO::XSP::Category

DESCRIPTION

This XSP taglib provides two tags to retrieve a structured XML fragment with all information of a single category or all categories of a certain type.

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

Tag Reference

<get-category catname="foo"/>

This tag will replace itself with some structured XML containing all fields of categories of type foo. It relates to the TABOO Data object AxKit::App::TABOO::Data::Category, and calls on that to do the hard work.

The root element of the returned object is cat:categories and each category is wrapped in an element cat:category and contains catname and name.

<get-categories type="foo"/>

This tag will replace itself with some structured XML containing all categories of type foo. It relates to the TABOO Data object AxKit::App::TABOO::Data::Plurals::Categories, and calls on that to do the hard work. See the documentation of that class to see the available types.

The root element of the returned object is categories and each category is wrapped in an element (surprise!) category. The type will also be available in an attribute called type.

FORMALITIES

See AxKit::App::TABOO.