Take me over?
NAME
Posy::Plugin::Categories - Posy plugin to give category links.
VERSION
This describes version 0.02 of Posy::Plugin::Categories.
SYNOPSIS
@plugins = qw(Posy::Core
Posy::Plugin::TextTemplate
Posy::Plugin::Categories);
DESCRIPTION
This provides category-based (lists of) links. A category tree which can be used as a site map, contains a list of lists of all the categories.
A breadcrumb list provides a "breadcrumb trail" list.
Helper Methods
Methods which can be called from elsewhere.
category_tree
$links = $self->category_tree( tree_head=>'<ul>', tree_foot=>'</ul>', subtree_head=>'<ul>', subtree_foot=>'</ul>', pre_item=>'<li>', post_item=>'</li>' pre_active_item=>'<em>', post_active_item=>'</em>', item_sep=>"\n", tree_sep=>"\n", use_count=>1, root=>'home');
Generates a list (of lists) of links of all the categories.
breadcrumb
$links = $self->breadcrumb( tree_head=>'<ul>', tree_foot=>'</ul>', subtree_head=>'<ul>', subtree_foot=>'</ul>', pre_item=>'<li>', post_item=>'</li>' pre_active_item=>'<em>', post_active_item=>'</em>', item_sep=>"\n", tree_sep=>"\n", root=>'home');
Generates a list (of lists) of links of the categories above (and just below) the current path.
Private Methods
_build_lol
Build a list of lists of categories.
_traverse_lol
Traverse the list of lists of categories to produce links.
REQUIRES
Test::More
SEE ALSO
perl(1). Posy
BUGS
Please report any bugs or feature requests to the author.
AUTHOR
Kathryn Andersen (RUBYKAT)
perlkat AT katspace dot com
http://www.katspace.com
COPYRIGHT AND LICENCE
Copyright (c) 2004 by Kathryn Andersen
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.