Add parent alias name in URL pattern

Srikrishna Podduturi asked on July 18, 2019 08:53


Could you please advise if it is possible to add parent alias name in a URL pattern of page type.

For example: http://localhost/Kentico12_DancingGoatMvc/en-US/Product/4900a509-759b-44ea-aa5e-29422116d16a/Bolivia-Finca-Illimani

I want to have coffee or brewer text in place of Product text in above url.

Thanks, Krishna.

Correct Answer

Dmitry Bastron answered on July 18, 2019 12:00

Hi Srikrishna,

You can use this macro, worked for me:

/{% Parent.NodeAlias |(identity)GlobalAdministrator%}

And in the MyCustomeTransformation method you can implement any logic you like. But do not forget that your custom macro assembly (or project) should be included in both CMS and MVC solutions.

0 votesVote for this answer Unmark Correct answer

Recent Answers

Srikrishna Podduturi answered on July 19, 2019 12:59

Thanks. This helped :)

0 votesVote for this answer Mark as a Correct answer

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