Jump to:

1347 Posts in 439 Topics by 514 members

Themes

SilverStripe Forums » Themes » SimpleStripe: Home link doesn't work

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 1679 Views
  • Lone_Deranger
    Avatar
    Community Member
    3 Posts

    SimpleStripe: Home link doesn't work Link to this post

    Hello,

    I installed the SimpleStripe theme. However, the link "home" at the top of the page does nothing when I click on it. How can I fix this?

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: SimpleStripe: Home link doesn't work Link to this post

    edit the offending template replacing "home" with $Link or $BaseHref etc.

  • truls
    Avatar
    Community Member
    1 Post

    Re: SimpleStripe: Home link doesn't work Link to this post

    I had the same problem.
    Downloaded latest simplestripe from https://github.com/Silverstriper/SimpleStripe
    After editing simplestripe/templates/Layout/Homepage.ss
    <article id="homeAbout" class="grid_4">
    # $HomeCol1
    $Link
    </article>

    Now it works in Firefox, IE and Chrome

  • UKBadger
    Avatar
    Community Member
    3 Posts

    Re: SimpleStripe: Home link doesn't work Link to this post

    Hi

    I'm having the same issue.

    My HomePage.ss looks like this:

    <article id="homeAbout" class="grid_4">
          # $HomeCol1
          $Link
    </article>

    But the home link still does not work.

    Viewing the source of the page I get this:

    <li><a href="/" title="Go to Home Page" class="link"><span>Home</span></a></li>

    which looks ok to my novice eyes.

    I've flushed the cache and even done a dev/build but still no joy. What else could be wrong?

    Any help is appreciated.

    Thanks

    UPDATE: Ok I changed the $Link to {$Link} and it now seems to work

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