Jump to content


Submitter

SUPPORT TOPIC File Information

  • Submitted: Nov 09 2007 08:11 PM
  • Last Updated: Nov 09 2007 08:11 PM
  • File Size: 4.41K
  • Views: 2447
  • Downloads: 282

Download authListSiteMap

- - - - -



// Snippet: authListSiteMap
When I used the snippet created by Jelmer (thanks for that one ;) ) for the sitemap with authentication I noticed that the sitemap did not filtered out deleted content, this one does
// --------------------
// Version: 0.6h.1
// addapted by TraXas to support authentication and deleted documents
// Date: 2007.11.08
// jaredc@honeydewdesign.com
//
// This snippet was designed to show a nested
// list site map with each pagetitle being a
// link to that page. It will not include
// unpublished and deleted folders/pages OR its children,
// even if the children ARE published.
// Config
// $siteMapRoot [int]
// The parent ID of your root. Default 0. Can be set in
// snippet call with LSM_root (to doc id 10 for example):
// [[ListSiteMap?LSM_root=10]]
$siteMapRoot = 0;
// $showDescription [true | false]
// Specify if you would like to include the description
// with the page title link.
$showDescription = true;
// $titleOfLinks [ string ]
// What database field do you want the title of your links to be?
// The default is pagetitle because it is always a valid (not empty)
// value, but if you prefer it can be any of the following:
// id, pagetitle, description, parent, alias, longtitle
$titleOfLinks = 'pagetitle';
// $removeNewLines [ true | false ]
// If you want new lines removed from code, set to true. This is generally
// better for IE when lists are styled vertically.
$removeNewLines = true;
// $maxLevels [ int ]
// Maximum number of levels to include. The default 0 will allow all
// levels. Also settable with snippet variable LSM_levels:
// [[ListSiteMap?LSM_levels=2]]
$maxLevels = 0;
// $selfAsLink [ true | false ]
// Define if the current page should be a link (true) or not
// (false)
$selfAsLink = false;
// $showUnpubs [ true | false ]
// Decide to include items in unpublished folders. This will show the
// unpublished items as well. No links will be made for the unpublished items
// but they will be shown in the structure. You will not likely want to do
// this but the option is yours.
$showUnpubs = false;
// Styles
// .LSM_currentPage span surrounding current page if $selfAsLink is false
// .LSM_description description of page
// .LSM_N ul style where N is the level of nested list- starting at 0
// ###########################################
// End config, the rest takes care of itself #
// ###########################################






  • 248 Total Files
  • 19 Total Categories
  • 50 Total Authors
  • 131,652 Total Downloads
  • TripTracker Gallery Latest File
  • Dean Latest Submitter