language repeater - custom page alias

Luca Byleveld asked on September 13, 2018 13:51

Hi guys

I want to use the language repeater, but the URL I'd like to use is the custom page alias created under the URL's tab on the page. Currently it uses {% HTMLEncode(URL) %}.

How can I get the page alias instead?

Thanks in advance

Recent Answers

Dragoljub Ilic answered on September 13, 2018 14:22 (last edited on December 10, 2019 02:31)

Hi Luca,

Depends on what you really need, you can use some of those: ~{%HTMLEncode(CurrentDocument.Aliases.FirstItem.DisplayName)|(identity)GlobalAdministrator%}

In both case you need to build full url, including culture code to make it works correctly.

Best regards, Dragoljub

1 votesVote for this answer Mark as a Correct answer

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