App::ZofCMS::Plugin::QueryToTemplate - ZofCMS plugin to automagically make query parameters available in the template


App-ZofCMS-Plugin-QueryToTemplate documentation  | view source Contained in the App-ZofCMS-Plugin-QueryToTemplate distribution.

Index


NAME

Top

App::ZofCMS::Plugin::QueryToTemplate - ZofCMS plugin to automagically make query parameters available in the template

SYNOPSIS

Top

In your ZofCMS template, or in your main config file (under template_defaults or dir_defaults):

    plugins => [ qw/QueryToTemplate/ ];

In any of your HTML::Template templates:

    <tmpl_var name="query_SOME_QUERY_PARAMETER_NAME">

DESCRIPTION

Top

Plugin can be run at any priority level and it does not take any input from ZofCMS template.

Upon plugin's execution it will stuff the {t} first level key (see App::ZofCMS::Template if you don't know what that key is) with all the query parameters as keys and values being the parameter values. Each query parameter key will be prefixed with query_. In other words, if your query looks like this:

    http://foo.com/index.pl?foo=bar&baz=beerz

In your template parameter foo would be accessible as query_foo and parameter baz would be accessible via query_baz

    Foo is: <tmpl_var name="query_foo">
    Baz is: <tmpl_var name="query_baz">

AUTHOR

Top

Zoffix Znet, <zoffix at cpan.org> (http://zoffix.com, http://haslayout.net)

BUGS

Top

Please report any bugs or feature requests to bug-app-zofcms-plugin-querytotemplate at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-ZofCMS-Plugin-QueryToTemplate. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc App::ZofCMS::Plugin::QueryToTemplate

You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=App-ZofCMS-Plugin-QueryToTemplate

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/App-ZofCMS-Plugin-QueryToTemplate

* CPAN Ratings

http://cpanratings.perl.org/d/App-ZofCMS-Plugin-QueryToTemplate

* Search CPAN

http://search.cpan.org/dist/App-ZofCMS-Plugin-QueryToTemplate

COPYRIGHT & LICENSE

Top


App-ZofCMS-Plugin-QueryToTemplate documentation  | view source Contained in the App-ZofCMS-Plugin-QueryToTemplate distribution.