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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

$MenuTitle Links


Go to End


2 Posts   2107 Views

Avatar
AlfonsoGrondo

Community Member, 2 Posts

5 July 2009 at 8:43am

A ridiculous newbie question I fear - I've added a navigation element as per the getting started tutorial:

<ul id="Menu1">
<% control Menu(1) %>
<li><a href="$Link">$MenuTitle</a></li>
<% end_control %>
</ul>

But seeing the following in the actual published template:

Home (/silverstripe/) About Us (/silverstripe/about-us/) etc..

i.e. the relative url path is being published within the a link text. I guess that's some sort of helper function.

How do I disable that?

Thanks

Avatar
Webdoc

Community Member, 349 Posts

5 July 2009 at 9:35am

<% control Menu(1) %>
<li><a href="$Link" title="$Title.XML" class="$LinkingMode"><span>$MenuTitle</span></a></li>
<% end_control %>