Jump to:

23490 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » $MenuTitle Links

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

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

Page: 1
Go to End
Author Topic: 1270 Views
  • AlfonsoGrondo
    Community Member
    2 Posts

    $MenuTitle Links Link to this post

    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 %>

    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?


  • Webdoc
    Community Member
    332 Posts

    Re: $MenuTitle Links Link to this post

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

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.