The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Maplat::Web::StandardFields - provide some standard fields for default_webdata

SYNOPSIS

This module provides static as well as dynamic data fields for default_webdata

DESCRIPTION

With this module, you can set static information in default_webdata directly from the configuration file. It also allows to set them host-specific.

StandardFields also can use memcached-keys to set data fields in default_webdata. So, nearly all data that doesn't require logic (e.g. database, calculation etc), this is the simplest to use module to provide data to the template renderer.

Configuration

        <module>
                <modname>defaultwebdata</modname>
                <pm>StandardFields</pm>
                <options>
                        <memcache>memcache</memcache>
                        <static>
                                <fields>
                                        <!-- set menuitem width -->
                                        <toplink_width>140px</toplink_width>

                                        <!-- per host configuration -->
                                        <hosts>
                                                <WXPDEV>
                                                        <!-- Display an info message on development system -->
                                                        <header_message>Testsystem</header_message>
                                                </WXPDEV>
                                        </hosts>
                                </fields>
                        </static>
                        <memory>
                                <fields>
                                        <!-- versions and buildnums read from memcached -->
                                        <SVCVersion>VERSION::Maplat SVC</SVCVersion>
                                        <SVCBuildNum>BUILD::Maplat SVC</SVCBuildNum>
                                        <WebGuiVersion>VERSION::Maplat WebGui</WebGuiVersion>
                                        <WebGuiBuildNum>BUILD::Maplat WebGui</WebGuiBuildNum>
                                        <MaplatWorkerVersion>VERSION::Maplat Worker</MaplatWorkerVersion>
                                        <MaplatWorkerBuildNum>BUILD::Maplat Worker</MaplatWorkerBuildNum>
                                        <MaplatAdmWorkerVersion>VERSION::MaplatAdm Worker</MaplatAdmWorkerVersion>
                                        <MaplatAdmWorkerBuildNum>BUILD::MaplatAdm Worker</MaplatAdmWorkerBuildNum>
                                </fields>
                        </memory>
                </options>
        </module>

Dependencies

This module depends on the following modules beeing configured (the 'as "somename"' means the key name in this modules configuration):

Maplat::Web::Memcache as "memcache"

SEE ALSO

Maplat::Web Maplat::Web::Memcache

AUTHOR

Rene Schickbauer, <rene.schickbauer@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2008-2011 by Rene Schickbauer

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.