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.
Developer forum
E-mail notifications
Device versions (redirect to mobile version)
Søren Kottal-Nielsen
Posted on 07/11/2011 15:59:17
Replies
Morten Bengtson
Posted on 07/11/2011 16:14:46
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...
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
Posted on 07/11/2011 16:30:24
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.
When you use rotation, theres no redirection happening - and its that behaviour I want to use.
Morten Bengtson
Posted on 07/11/2011 16:43:47
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?
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
Posted on 05/01/2012 13:34:27
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.
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
Posted on 05/01/2012 14:17:21
Coming up...
Jacob Storgaard Jensen
Posted on 23/05/2012 21:48:36
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
Posted on 26/06/2012 11:30:00
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
Posted on 28/06/2012 15:16:14
Hi all - We are working on this item and expect it to release this autumn.
Michael Fløe Haug
Posted on 01/07/2013 09:57:41
How is it going on this topic?
Nicolai Høeg Pedersen
Posted on 01/07/2013 12:43:30
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
Posted on 23/09/2013 09:07:56
Hi!
Something new? It is most wanted!
Jacob Storgaard Jensen
Posted on 14/03/2014 16:30:59
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
Posted on 14/03/2014 23:54:39
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