Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Site Map

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

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

Page: 1
Go to End
Author Topic: 2089 Views
  • vetoo
    Community Member
    2 Posts

    Site Map Link to this post

    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?

  • Ingo
    Forum Moderator
    801 Posts

    Re: Site Map Link to this post

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

  • Fuchur
    4 Posts

    Re: Site Map Link to this post

    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



  • Jedateach
    Forum Moderator
    227 Posts

    Re: Site Map Link to this post

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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.