Jump to:

23477 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Home link not working.

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: 1141 Views
  • Anirath
    Avatar
    Community Member
    7 Posts

    Home link not working. Link to this post

    I'm using:

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

    But for some reason I can't click the link to my Home page. It just doesn't respond no matter what page I'm on. Anyone point me in the right direction to fix this?

  • ajshort
    Avatar
    Community Member
    244 Posts

    Re: Home link not working. Link to this post

    <a href="#"> will just link you to the current page. You need to use <a href="$Link"> instead.

  • Anirath
    Avatar
    Community Member
    7 Posts

    Re: Home link not working. Link to this post

    Can't believe I overlooked that... Thanks haha.

    1141 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.