Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have just upgraded an Umbraco 6.1.6 site to version 6.2.4 but now alternative templates don't seem to be working. I am using the same method as described here: http://www.nibble.be/?p=42 (by appending "/alt-template" to the URL of the node - umbracoUseDirectoryUrls is set to true so the ".aspx" is left off).
All the alternative templates are selected as allowed templates on the document type, although they were not before the upgrade and it still worked.
Has anyone else experienced this?
That seems a bit odd - What happens if you call the template using the querystring? http://domain.local?altTemplate=yourtemplatealias - Does that work?
Same thing using that method. I get a response in both cases (200 OK - no errors) but it's totally empty.
Did you clear the client dependency cache aftet the upgrade was finished and then recycled the app pool?
I have, yes. I also double checked that the templates were there in Umbraco, have content in them, and have the correct aliases.
We had a few rewrite rules in Web.config that I thought may have caused the issue but I've removed them and I'm still seeing the same behaviour.
Hmm, not sure wether it's a bug or due to configuration changes. This post http://our.umbraco.org/forum/using/ui-questions/37937-What-shall-we-do-with-AltTemplate?p=0 discusses the use of alternative templates but it's about 1 year old, but perhaps you can find some answer in it. But it's focussed on 6.1...so I'm not sure.
Otherwise I would say it's a bug.
No revelations unfortunately.
Seems like I might have to look deeper.
You can also try filing a bug report on the issue tracker - If you do so then please post a link to the issue back in here for future reference if other people come across the issue.
I don't want to file a bug report just yet as I can't seem to replicate the issue.
I've tried with a clean install of 6.2.4 as well as a clean install of 6.1.6 upgraded to 6.2.4 (using NuGet).
I'll keep looking. Will report back here if I find anything.
Turns out 6.2.x doesn't let you create templates with hyphens in the aliases (this was listed as a breaking change in 6.2.0 - http://issues.umbraco.org/issue/U4-3025).
Our existing alternative templates contained hyphens so this is what caused them not to work. We're now renaming the aliases in question and adding rewrite rules to strip out the hyphens and return a 301 redirect.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted