Apache-PageKit
view release on metacpan or search on metacpan
docsrc/reference.xml view on Meta::CPAN
Error page when page cannot be found. Defaults to <literal><link linkend="config.global.default_page">default_page</link></literal>.
</para>
</listitem>
</varlistentry>
<varlistentry id="config.global.page_session">
<term>page_session</term>
<listitem>
<para>
Sets the default for all non static pages.
If set to <emphasis>yes</emphasis>, every non static page gets a unique session.
Defaults to <emphasis>no</emphasis>. This value is overridden with
<literal><link linkend="config.page.page_session">page_session</link></literal>.
</para>
</listitem>
</varlistentry>
<varlistentry id="config.global.page_session_class">
<term>page_session_class</term>
<listitem>
<para>
Name for the Module, that is used to create the page_session objects.
Defaults to <emphasis>Apache::SessionX</emphasis>.
</para>
</listitem>
</varlistentry>
<varlistentry id="config.global.post_max">
<term>post_max</term>
<listitem>
<para>
Maximum size of file uploads, in bytes. Defaults to 100,000,000 (100 MB).
</para>
</listitem>
</varlistentry>
<varlistentry id="config.global.upload_tmp_dir">
<term>upload_tmp_dir</term>
<listitem>
<para>
Temporary directory for file uploads. Defaults to whatever libapreq finds usefull.
This options is only usefull if you use libapreq >= 1.0. The temporary directory
usually needs to reside on the same filesystem as the location supplied to the
upload object's <programlisting>link</programlisting> method. See the Apache::Request
documentation for further information.
</para>
</listitem>
</varlistentry>
<varlistentry id="config.global.protect_static">
<term>protect_static</term>
<listitem>
<para>
If set to <emphasis>yes</emphasis> static files can also be protected with the
require_login attribute in the SECTION or PAGE tags.
Set this option to <emphasis>no</emphasis> to be compatible to PageKit < 1.09.
Defaults to <emphasis>yes</emphasis>.
</para>
</listitem>
</varlistentry>
<varlistentry id="config.global.recent_login_timeout">
<term>recent_login_timeout</term>
<listitem>
<para>
Seconds that user's session has to be inactive before a user is asked
to verify a password on pages with the <literal><link linkend="config.page.require_login">require_login</link></literal> attribute
set to <emphasis>recent</emphasis>. Defaults to 3600 (1 hour).
</para>
</listitem>
</varlistentry>
<varlistentry id="config.global.relaxed_parser">
<term>relaxed_parser</term>
<listitem>
<para>
If set to yes, this option allows template tags to be placed inside
HTML comments. It also permits spaces and newlines within the tag itself.
This option may be useful to HTML authors who would like to validate their
templates' HTML syntax prior to processing, or who use DTD-aware editing
tools.
Defaults to <emphasis>no</emphasis>.
<informalexample>
<programlisting>
relaxed_parser = "yes"
# these tags are all allowed if relaxed_parser is enabled:
<MODEL_VAR NAME="x">
< MODEL_VAR NAME = 'x' >
< MODEL_LOOP NAME = x >
< PKIT_COMPONENT NAME = x />
<!-- MODEL_VAR NAME="x" -->
<!-- CONTENT_VAR NAME = "x" /-->
</programlisting>
</informalexample>
</para>
</listitem>
</varlistentry>
<varlistentry id="config.global.request_param_in_tmpl">
<term>request_param_in_tmpl</term>
<listitem>
<para>
If set to yes, then <literal><link linkend="model.var"><MODEL_VAR></link></literal> tags in template automatically get filled in
with corresponding request parameters across all pages. Can be overriden
by the corresponding <link linkend="config.page.request_param_in_tmpl">page attribute</link>. Defaults to <emphasis>no</emphasis>.
</para>
</listitem>
</varlistentry>
<varlistentry id="config.global.request_class">
<term>request_class</term>
<listitem>
<para>
Name for the Module, that is used to create the request class objects.
Defaults to <emphasis>Apache::Request::PageKit</emphasis>. Which is a
subclass of Apache::Request. A own subclass is usefull, if you like to
change the data container for your requstparameter or modify them on
init() or new().
</para>
</listitem>
</varlistentry>
<varlistentry id="config.global.session_class">
<term>session_class</term>
<listitem>
<para>
Name for the Module, that is used to create the session objects.
docsrc/reference.xml view on Meta::CPAN
</listitem>
</varlistentry>
<varlistentry id="config.global.session_expires">
<term>session_expires</term>
<listitem>
<para>
Sets the expire time for the cookie that stores the session id on
the user's computer. If it is not set, then the expire time on the
cookie will not be set, and the cookie will expire when the user closes
their browser.
<informalexample>
<programlisting>
session_expires = "+3h"
</programlisting>
</informalexample>
</para>
</listitem>
</varlistentry>
<varlistentry id="config.global.template_class">
<term>template_class</term>
<listitem>
<para>
Name for the Module, that is used to create the template objects.
Defaults to <emphasis>HTML::Template</emphasis>.
</para>
</listitem>
</varlistentry>
<varlistentry id="config.global.uri_prefix">
<term>uri_prefix</term>
<listitem>
<para>
Prefix of URI that should be trimmed before dispatching to the Model code.
</para>
<para>
See also <link linkend="model.api.pkit_fixup_uri">pkit_fixup_uri</link>
in the Model API.
</para>
</listitem>
</varlistentry>
<varlistentry id="config.global.use_locale">
<term>use_locale</term>
<listitem>
<para>
If set to <emphasis>yes</emphasis> pkit translates the original message to the language
of the client if possible. If <link linkend="config.server.reload">reload</link>
is set to <emphasis>yes</emphasis>, the translationtables are reloaded on every usage else only on first usage.
</para>
<para>
Defaults to <emphasis>no</emphasis>.
See also <link linkend="model.api.pkit_gettext">pkit_gettext</link> and
<link linkend="model.api.pkit_gettext_message">pkit_gettext_message</link>
in the Model API.
</para>
</listitem>
</varlistentry>
<varlistentry id="config.global.verify_page">
<term>verify_page</term>
<listitem>
<para>
Verify password form. Defaults to <literal><link linkend="config.global.login_page">login_page</link></literal>.
</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2>
<title>Section Attributes</title>
<para>
These options are global across each server and all Views. They are in the
<SECTIONS> tag of <filename>Config/Config.xml</filename>.
</para>
<para>
All Page attributes are valid. <SECTION> Tags with the longest matching part of the id attribute
provide the defaults for pages without the attribute in question.
<PAGE> attributes written in the <PAGE> tag have the highest priority. If nothing is found the
<SECTION> Tags are scanned for a default. The closest match wins and the search is over.
See the line with /xyz in the example bellow, if we request /xyz/abc, the search ends at
the line with id='/xyz' and the page does not require a login!
</para>
<informalexample>
<programlisting>
<SECTIONS>
<SECTION id='/' require_login='yes'/>
<SECTION id='/xyz' request_param_in_tmpl='yes'/>
<SECTION id='/free' require_login='no'/>
</SECTIONS>
</programlisting>
</informalexample>
<variablelist>
<varlistentry id="config.section.id">
<term>id</term>
<listitem>
<para>
This is part of the uri path to the page where the defaults take place. '/' Means the whole site.
This attribute is needed in every <SECTION> tag.
</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2>
<title>Server Attributes</title>
<para>
These options are global over all pages, but are local to each server configuration
(e.g. production, staging, development). They are located in the <SERVERS> tag of
<filename>Config/Config.xml</filename>.
</para>
<variablelist>
<varlistentry id="config.server.can_edit">
<term>can_edit</term>
( run in 3.445 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )