xslt - alttemplate shows the default template id instead of redirected template -


i have default desktop template home. using alttemplate redirecting user mobilehome template when user request mobile. when use

<xsl:value-of select="$currentpage/@template"/> 

in xslt used inside mobilehome template id of home displayed instead of mobilehome. need take template id of mobilehome(the redirected page). idea or solution. in advance.

the template property on page return id of template have selected use node in backend. determine if alttemplate being used, can following:

<xsl:value-of select="umbraco.library:gethttpitem('alttemplate')" /> 

see following our umbraco forom posts details:


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -