Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Steven Harland 78 posts 518 karma points c-trib
    Dec 05, 2014 @ 10:18
    Steven Harland
    0

    Alternative Templates Not Working After 6.1.6 to 6.2.4 Upgrade

    Hi all,

    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?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Dec 05, 2014 @ 10:43
    Jan Skovgaard
    0

    Hi Steven

    That seems a bit odd - What happens if you call the template using the querystring? http://domain.local?altTemplate=yourtemplatealias - Does that work?

    /Jan

  • Steven Harland 78 posts 518 karma points c-trib
    Dec 05, 2014 @ 12:10
    Steven Harland
    0

    Hi Jan,

    Same thing using that method. I get a response in both cases (200 OK - no errors) but it's totally empty.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Dec 05, 2014 @ 12:20
    Jan Skovgaard
    0

    Hi Steven

    Ok...that's odd.

    Did you clear the client dependency cache aftet the upgrade was finished and then recycled the app pool?

    /Jan

  • Steven Harland 78 posts 518 karma points c-trib
    Dec 05, 2014 @ 14:50
    Steven Harland
    0

    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.

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Dec 05, 2014 @ 15:31
    Jan Skovgaard
    0

    Hi Steven

    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.

    /Jan

  • Steven Harland 78 posts 518 karma points c-trib
    Dec 05, 2014 @ 17:53
    Steven Harland
    0

    No revelations unfortunately.

    Seems like I might have to look deeper.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Dec 05, 2014 @ 19:57
    Jan Skovgaard
    0

    Hi Steven

    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.

    /Jan

  • Steven Harland 78 posts 518 karma points c-trib
    Dec 06, 2014 @ 15:48
    Steven Harland
    1

    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.

  • Steven Harland 78 posts 518 karma points c-trib
    Dec 09, 2014 @ 15:02
    Steven Harland
    101

    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.

Please Sign in or register to post replies

Write your reply to:

Draft