<DT><STRONG><A NAME="item_%pages">%pages</A></STRONG><BR>
<DD>
The specifications for menus and pages. Menus can be single link or a series
of drop down menu depending on how you specifiy the page. The page names are
the keys to the hash and are used as the menu-bar link text. All page files
are placed in the 'pages' directory.
<P>FILE NAME SYNTAX:</P>
<P>Files are named with the 'key' name of the page as the lefthand side and
a suffix designating the file's purpose as the right hand side. For the
required page 'Home', they are as follows:</P>
<PRE>
# [optional] page used if there are not individual pages
# NOTE: neither a Default page or individual page is required
Default.meta # meta text loaded after <title>
Default.head # optional additional <head> text
# that is on every page, end of page
Default.top # optional body text that appears
# on every page before menu-bar
# i.e. logo, etc...
# for each individual page
Home.meta # meta text loaded after <title>
Home.head # optional additional <head> text
Home.top # body text that appears before
# menu-bar. i.e. logo, etc...
Home.c1 # [optional] column 1 content
Home.c2 # [optional] column 2 content
Home.cn # [optional] column 'n' content</PRE>
<PRE>
%pages = (</PRE>
<PRE>
# REQUIRED page
#
Home => {
# SEE: detailed link format below
menu => ['Home', 'Page1', 'Page2', 'Page5'],
# optional title text - if missing, 'heading' text will be used
title => 'page title',</PRE>
<PRE>
# optional table row immediately under menu. This allows a "drop"
# shadow to be added to the menu bar with a "1" pixel wide image, 'example'
menustripe => '<img src="images/stripe1.gif" height=4 width=100%>',</PRE>
<PRE>
# optional
heading => 'Text under menu, over body text',</PRE>
<PRE>
# number of columns and column width in pixels
column => [20, 200, 400], # three columns</PRE>
<PRE>
# optional
submenu => [qw(Page3 Page4)], # drop down menu</PRE>
<PRE>
# optional trailer bar
trailer => {</PRE>
<PRE>
# a named page
links => [qw(Page5 Page6)],</PRE>
<PRE>
# optional right hand side text. if there are no links then the
# text will be placed on the left hand side of the trailer bar
text => 'Copyright 2006, yourname',</PRE>
<PRE>
# optional table row immediately above trailer bar. this allows a "drop"
# shadow to be added to trailer bar with a "1" pixel wide image, 'example'
top => '<img src="images/stripe2.gif" height=4 width=100%>',</PRE>
<PRE>
# optional table row immediately below trailer bar. This allows a "top"
# shadow to be added to trailer bar with a "1" pixel wide image, 'example'
bottom => '<img src="images/stripe1.gif" height=4 width=100%>',
},
},</PRE>
<PRE>
# next page
#
Page1 => ... same as above
},
#
# ... and so on</PRE>
<PRE>
# for the auto-generated Sitemap page, there is one additional
# specification element...
#
Sitemap => {
...
# specify the column in which the sitemap should appear
# defaults to '1'
autocol => 1,
...
},</PRE>
<PRE>
# and for debug... example
# load this page segment as source in a single window</PRE>
<PRE>
'Home.top' => {</PRE>
<PRE>
# copy prototype page from this one page.</PRE>
<PRE>
debug => 'Home',</PRE>
<PRE>
# optional location if not in the 'pages' directory
#
location => 'path/to/filename',
},
);</PRE>
<P></P></DL>
<P>
<HR>