17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1983 Views |
-
Site Map

3 May 2007 at 8:03am
Hi, Something to create a Site Map of the site would be quite a nice idea, I have had a look around the forum and wiki but found no information on generating a site map...
is there a way to do this?
-
Re: Site Map

3 May 2007 at 6:20pm
not directly, but we have a method on Hierarchy.php which does something very similiar.
function getChildrenAsUL($attributes = "", $titleEval = '"<li>" . $child->Title', $extraArg = null, $limitToMarked = false, $rootCall = true)
you probably need to wrap it into a custom method in Page.php, like
class Page extends SiteTree {
function SiteTreeList() {
return $this->getChildrenAsUL(<your arguments>);
}
} -
Re: Site Map

13 August 2007 at 10:18pm
I would like to see a feature like this!
The way its presented to you in the backend is quite a nice way I presume.
My coding in SS is in its beginning phase with limited php knowledge dunno if I can do it myself
Thanx
Fuchur
-
Re: Site Map

26 September 2007 at 11:34am
I think this would be a good page type to include in the default SilverStripe install.
| 1983 Views | ||
|
Page:
1
|
Go to Top |




