|
Source: http://svn.oss.backendmedia.com/modules/sitemap/sitemap.phps
The purpose of this module is to be able to define a tree structure over the pages in the system.
config options inside the ini:
<?php
$sitemap = array (
'subpath' => true,
/*
this option enables generation of the subpath to the given page.
either based on a parameter or by traversing the tree until the
current page is found current page
*/
'only_subpath' => true,
/*
only the parts of the tree should be passed to the template
that are inside the subpath (requires the subpath option to be enabled)
*/
'reduce_by_level' => 1,
/*
this option allows hiding of lower levels, this can be handy
if you are using the same sitemap ini for different views
and you want to hide the lower levels of the tree structure
(requires the subpath option to be enabled)
*/
'tree' => // the actualy sitemap tree structure
array (
444 => true,
/*
pid of a page to be shown in the tree;
name, access rights etc. are read and are checked based on the values inside the cms_objects table
*/
561 =>
array ( // any value can contain an array of values
'name' => 'test', // arbitrary keys can be set that will be passed to the template
'children' => // children denote children of the given node inside the tree
array (
561 => true,
),
),
'foobar' => true, // strings will be passed as is into the tree structure
'barfoo' => array(
'name' => 'lala', // string
'security' => 4, // only users with right 4 will be able to see this node
),
),
);
?>
This site powered by YaWiki 0.22 beta.
| No user comments exist for this page. |
Add A Comment
Your comment will be added immediately; please check your comments, and be nice. :-)
Please use plain text only; HTML and PHP code will be converted to entities.
Your email address will be obfuscated with [AT] and [DOT] after you post your comment.
|
|