Try our conversational search powered by Generative AI!

Inherit the page url segment from default language

Vote:
 

We have a multilingual site with translations in Chinese. The default language for the site is English.

When we create a new translated page we need to ensure that the "Name in URL" property is inherited from the original English Page. Currently episerver seems to be trying to copy the chinese page name into a this property and ending up with the value of 1.

How can we make sure that

a) a new translated page inherits its "Name in URL" from the default english page

b) If the user modifies the url of the default english page, that url is cascaded down to all other languages.

Thanks

#149764
Jun 07, 2016 13:19
Vote:
 

a) React to the Published event on content events and set the url segement correctly there. 

http://jondjones.com/how-to-hook-into-the-episerver-cms-events-pipeline/

b) React to the UrlSegement created event and propagate changes to different language versions

Check out 

http://joelabrahamsson.com/lowercase-episerver-url-segments/

for inspiration. 

Be careful of not creating infinite loops :)

#149775
Jun 07, 2016 14:35
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.