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?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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?
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>);
}
}
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
Thanx
Fuchur
I think this would be a good page type to include in the default SilverStripe install.