The options are written into the GET url with forms -- see
http://testwebsite.bechmann.ca/wiki/wiki.php/Site.SiteMap?action=source
Note that I have request=1 in
(:pagelist list=sitemap fmt=#sitemap name={$DefaultName} request=1:)
which causes any url query parameters to over-ride pagelist arguments
(namely the "name= field")
Then in Site.SiteMap.php I have
=========================
<?php
global $FmtPV,$SearchPatterns;
$FmtPV['$PageCreatedDate'] = 'strftime("%B %d, %Y", $page["ctime"])';
$FmtPV['$PageModifiedDate'] = 'strftime("%B %d, %Y", $page["time"])';
$FmtPV['$SiteName'] = '$GLOBALS["CustomHeaderTitle"]';
$sitemapoption=$_GET["sitemapoption"];
if (!$sitemapoption) $sitemapoption='folders';
switch ($sitemapoption) {
case 'folders': $maptitle='Listing of Folders' ; break;
case 'changedpages': $maptitle= 'Listing by Changed Pages'; break;
case 'newpages': $maptitle='Listing by New Pages' ; break;
case 'allpages': $maptitle='All Pages'; break;
}
$FmtPV['$SiteMapHeading'] = "'" . $maptitle . "'";
==========================
to set the Page Variables I use in the site map.
- Henrik
[EMAIL PROTECTED] wrote:
> After following the thread on sorting the tables, I went to your website,
> and saw:
>
> http://testwebsite.bechmann.ca/wiki/wiki.php/Site.SiteMap?sitemapoption=folders&name=FrontPage
>
> for the sitemap. How do you do the sitemap options?
>
>
--
Henrik Bechmann
www.bechmann.ca
Webmaster, www.dufferinpark.ca
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users