How to set alternate template programatically?
I have a article page content and assigned two templates. Article content has to be rendered in an another page with different frontend. So I created another template. But how to check if the url should take the default template or alternate template.
The application was in Umbraco 7 and has beed upgraded to 9. In Umbraco 7, the template alias is passed as last segment of the path. ContentFinder is added to handle the routing using ContentFinderResolver.Current.InsertTypeBefore();