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

Return entire site URL


Go to End


2 Posts   7348 Views

Avatar
pinkp

Community Member, 182 Posts

7 April 2012 at 9:22am

Im sure this must be simple but I can find out how to do it! :(

I just want to return the entire site URL... i.e. www.mysite.com/parent/child/grandchild

something like $URL ?

Thanks

Avatar
Willr

Forum Moderator, 5523 Posts

7 April 2012 at 5:57pm

$AbsoluteLink / $Link is the standard pattern for returning a link to an object.