Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Site Map

Go to End

4 Posts   2364 Views


Community Member, 2 Posts

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?


Forum Moderator, 801 Posts

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>);


4 Posts

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 :P




Forum Moderator, 238 Posts

26 September 2007 at 11:34am

I think this would be a good page type to include in the default SilverStripe install.