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.

We've moved the forum!

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.

All other Modules /

Discuss all other Modules here.

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

[Solved] Site Map Module needs help


Go to End


3 Posts   1132 Views

Avatar
Graphicator

Community Member, 62 Posts

17 June 2010 at 10:18pm

Edited: 18/06/2010 7:43pm

The first level links work great, however in the slick map mode, all the 2nd level+ children are not linked correctly.

http://silverstripe.org/site-map-module-module/

Avatar
Graphicator

Community Member, 62 Posts

18 June 2010 at 7:41pm

Edited: 18/06/2010 7:42pm

Fixed, for Silverstripe 2.4, I'm down with the code.

In SiteMapModule.php (line 185).

the old version without nested urls

$output .= '
						<li><a href="'.$page->URLSegment.'" title="Go to the '.Convert::raw2xml($page->Title).' page">'.Convert::raw2xml($page->MenuTitle).'</a>';

to this 2.4 version

$output .= '
						<li><a href="'.$page->Link().'" title="Go to the '.Convert::raw2xml($page->Title).' page">'.Convert::raw2xml($page->MenuTitle).'</a>';

Thanks to this post on the forum http://www.silverstripe.org/data-model-questions/show/281864?start=0#post283190

Avatar
Willr

Forum Moderator, 5523 Posts

18 June 2010 at 9:55pm

You should get in touch with the module maintainer - DesignCity (http://designcity.com.au/) and see if he can update it (if he hasn't already). Not everyone catches every thread on the forum :D