Jump to:

10850 Posts in 2517 Topics by 1793 members

All other Modules

SilverStripe Forums » All other Modules » Site Map module tweak for Silverstripe 2.4 with nested URLs

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1204 Views
  • Anatol
    Avatar
    126 Posts

    Site Map module tweak for Silverstripe 2.4 with nested URLs Link to this post

    Hi,

    I found the site map module by chance and it saved quite a lot of time. Thanks for that!

    Here is just one little tweak to use it in Silverstripe 2.4 with nested URLs enabled. In /sitemapmodule/code/SiteMapModule.php change

    $page->URLSegment


    to

    $page->Link()

    This code snippet needs to be changed in two places, in makeList() and in makeChildList().

    The only other thing that might be worth mentioning is to make sure you keep the folder name "sitemapmodule". I renamed it for some reason to "sitemap" and the module could no longer find the css style sheets and the javascript which are defined in the same file in init(). Either rename the folder back to "sitemapmodule" or change the javascript and css requirements in init().

    Thanks for this very useful module!

    Cheers!
    Anatol

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Site Map module tweak for Silverstripe 2.4 with nested URLs Link to this post

    You should email the module maintainer (DesignCity http://silverstripe.org/ForumMemberProfile/show/728) directly to see if they can release an updated version.

  • sajok
    Avatar
    Community Member
    82 Posts

    Re: Site Map module tweak for Silverstripe 2.4 with nested URLs Link to this post

    @Anatol

    thank you so much for the tips.. the stylesheet was not included until I renamed the module folder name to "sitemapmodule".

    1204 Views
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.