Absolute url in Version 6

lawrence whittemore asked on April 7, 2014 12:49

I am trying to use a macro to get the absolute url in kentico six. I am using the static html webpart. I have it working in 7 on another site but doesn't seem to work in six. I am trying this {%CMSContext.CurrentDocument.AbsoluteURL%}

Recent Answers

Brenden Kehren answered on April 7, 2014 13:20

I've used {%RootDocument.AbsoluteURL% in the past to get the domain and such and it's worked really good. It would return http(s)://www.yoururl.com/ I can't remember if it works on v6 though. You might be able to use that and CurrentDocument.NodeAliasPath together to get what you're looking for.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.