WebBuilder2

AdvancedSearch | AreaMap ]

Search:

  HomePage   News   Getting Started Guide   WebBuilder2   CurrentStateOfAffairs  
  WebBuilder2   FeatureList   FrontController   LibraryPackages   ApplicationModules   ApplicationTemplates   Installation Instructions   ReleaseManagement  

Username:

Password:


Areas In
This Wiki

BEPHPUG

Conferences

emPHPower

LiveUser

Main

MDB2

PDO

PHPSVN

PHPTODO

RDBMS

WebBuilder2

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
    ),
  ),
);
?>
WebBuilder2:SitemapModule (212.202.40.149)
Fri, 18 Feb 2005, 19:52
[ Links | Source | History | RSS ]

This site powered by YaWiki 0.22 beta.


No user comments exist for this page.

Add A Comment
Email:
*Comment:
Catpcha:
* denotes required field

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.

ApplicationModules
CmsModule
DebuggerModule
FileLoaderModule
LoginModule
SitemapModule
UserModule
UserPreferenceModule