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.

Themes /

Discuss SilverStripe Themes.

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

SimpleStripe: Home link doesn't work


Go to End


4 Posts   2892 Views

Avatar
Lone_Deranger

Community Member, 3 Posts

11 February 2011 at 2:57am

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?

Avatar
swaiba

Forum Moderator, 1899 Posts

11 February 2011 at 5:34am

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

Avatar
truls

Community Member, 1 Post

5 August 2011 at 1:01am

Edited: 05/08/2011 1:10am

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

Avatar
UKBadger

Community Member, 3 Posts

13 September 2011 at 8:53pm

Edited: 13/09/2011 9:45pm

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