Site structure
Version 6.x > Site structure > Mobile Redirection - Multiple instances on page View modes: 
User avatar
Member
Member
rohland@clyral.com - 7/16/2012 12:24:23 PM
   
Mobile Redirection - Multiple instances on page
Hi,

I've run into an issue and not sure how to solve it. I'd like to use the mobile redirection web part as follows:

1. Instance on master page which points to ~/Mobile
2. Further instances on sub-pages which point directly to mobile related content. For example if a user goes to www.mysite.com/news/latest they are redirected to www.mysite.com/mobile/news/latest.

How do I go about achieving this? Ideally, I'd like to override the properties of the master page web part instance on sub-pages. Is this possible?

Regards,
Rohland

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/23/2012 2:30:23 AM
   
RE:Mobile Redirection - Multiple instances on page
Hi,

Have you tried using a macro in the web part settings in the redirect URL? If the mobile section has e.g. some prefix like /mobile/ you can use the redirect URL macro like:

~/mobile/{%CurrentDocument.NodeAliasPath%}

so, if the user goes to www.domain.com/news.aspx in the mobile device, the redirection will go to www.domain.com/modile/news.aspx

Best regards,
Juraj Ondrus