Developer forum

Forum » Feature requests » Device versions (redirect to mobile version)

Device versions (redirect to mobile version)

Søren Kottal-Nielsen
Reply
I just noticed the new features for device layouts, and I think its a great addition. But sometimes I want to exclude some content, or add some content to the mobile version. How about adding a "device versions" tab. Just like a you can make a page into a shortcut to another page. I.e. you could set a page to redirect to another page if it's browsed by a phone. Hope this makes sence, as it could be a great feature.

You could then set a mobile shortcut, and a tablet shortcut.


Replies

 
Morten Bengtson
Reply
According to Google you should avoid redirects whenever possible, but I see your point :)

However, in DW8 there are some global tags available that tells you about the current device, which you can use in your templates to include or exclude certain content...

Global:Device.IsMobile
Global:Device.IsTablet
Global:Device.IsDesktop
Global:Device.IsBot
Global:Device.IsAndroid
Global:Device.IsIOS
Global:Device.IsWindows
Global:Device.IsOther
Global:Device.IsIPhone
Global:Device.IsAndroidPhone
Global:Device.IsWindowsPhone
Global:Device.IsIPad
Global:Device.IsAndroidTablet
Global:Device.IsWindowsTablet

You can use it like this...
<!--@If Defined(Global:Device.IsMobile)-->
... content for mobile devices only goes here ...
<!--@EndIf(Global:Device.IsMobile)-->

<!--@If Not Defined(Global:Device.IsMobile)-->
... content for anything but mobile devices goes here ...
<!--@EndIf(Global:Device.IsMobile)-->

 
Søren Kottal-Nielsen
Reply
I know I wrote redirection, but it was not literally what I meant :)

When you use rotation, theres no redirection happening - and its that behaviour I want to use.

 
Morten Bengtson
Reply
So maybe a setting on the website?

If the content for mobile is totally different from content for desktop then a setting for "redirecting" users to a separate mobile website would be better, right?
 
Morten Vallentin
Reply
Yes, such a setting would be very useful indeed. It would have to be able to accept an external (as well as dw-internal) link too.
And of course the option to do this for each new site in the DW solution, if you are using the Websites module.
 
Nicolai Høeg Pedersen
Reply
Coming up...
 
Jacob Storgaard Jensen
Reply
I hope this is close to beeing a reality... just had a client interested in a quite large mobile solution. :-) + we will need a "set session to desktop version" parameter or "full page link" possibility, when a user is redirected to the mobile version and wants to see the desktop version site. The "set session to desktop version" parameter beeing usefull when not using the (hopefully) upcomming redirect approach.
 
Michael Fløe Haug
Reply
Is there any news about this topic? Also I need the feature that if you are redirected to a mobile site using your phone/pda then you are able to go back and see the desktop version on your phone/pda if you want.
 
Asger Munkholm Højfeldt
Reply
 Hi all - We are working on this item and expect it to release this autumn.
 
Michael Fløe Haug
Reply

How is it going on this topic?

 
Nicolai Høeg Pedersen
Reply

Hi Michael

 

It has not made it to Dynamicweb yet.

 

Will discuss it internally and try to have it scheduled for a release.

 

BR Nicolai

 
Michael Fløe Haug
Reply

Hi!

 

Something new? It is most wanted!

 
Jacob Storgaard Jensen
Reply

Well... we are in 2014 now... I just saw Marty McFly's howerboard was released (not)... what about this feature... almost 3 years now...

 
Jacob Storgaard Jensen
Reply

To all you patient frontenders - Morten Bengtson came to our rescue!

See his answer in this post: http://developer.dynamicweb-cms.com/forum/cms-standard-features/device-detection-scenario-question.aspx