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.

Template Questions /

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

Logo linking to homepage


Go to End


2 Posts   4284 Views

Avatar
antonio.volpon

Community Member, 8 Posts

6 August 2009 at 11:55pm

Hi.
I'm quite new to SS. How is possible to specify a link for the template logo to the homepage (or other specific page) without hardcoding it?
And, is it possibile, in case of a multi-language site, to have this link that lead to the original or translated version of the page accordingly?

Thanks a lot,
Antonio

Avatar
baba-papa

Community Member, 279 Posts

23 August 2009 at 8:10am

$BaseHref gives you the url of your installation.
If the image belongs to your theme: $ThemeDir/images/image.jpg