Does the following logic:
#set($clickstream = $mySession.getAttribute("clickstream"))
#if($clickstream.isMobileDevice())
$response.sendRedirect('http://m.stchas.edu')
#end
Found at :
http://www.dotcms.com/codeshare/mobile-detection-and-redirection
work without any additional data needed? I’ve already added this line of code:
#set($mySession = $request.getSession())
Before the first block of code shown above, in order to get the session variable.
I’ve tried using it on our full site and it does not appear to be redirecting any of the mobile devices that we’ve used so far, to our mobile site.
Thanks for the help.
--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
Visit this group at http://groups.google.com/group/dotcms?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Will,
I’m not sure if we have that config. Property turned on. So how can we tell if it’s turned on, from the backend?
Thanks for the information.
Henry
Will,
Since I sent my last response to you our webmaster sent me a note confirming that we do not currently have that property turned on, because it bogged down our database. Thanks.
Will,
Thanks. I may have some questions later.
Kivi,
Thanks for the response. Due to the cost of using the WURFL database, we’re unable to go in that direction. At this point I’m not sure if we’ll use the code using the regular expression, other than maybe as a short term way to make things work temporarily, while we come up with another approach. Thanks again.
Henry
Not sure. It was previously looked at by our webmaster and ruled out because of cost. That’s all I know.
From: dot...@googlegroups.com [mailto:dot...@googlegroups.com] On Behalf Of Kivi Shapiro
Sent: Thursday, May 23, 2013 10:19 AM
To: dot...@googlegroups.com
Subject: Re: [dotcms] Mobile Detection and Redirection
Free, isn't it? http://sourceforge.net/projects/wurfl/files/WURFL/
--
Thanks Kivi. I’ll check it out.
From: dot...@googlegroups.com [mailto:dot...@googlegroups.com] On Behalf Of Kivi Shapiro
Sent: Thursday, May 23, 2013 10:28 AM
To: dot...@googlegroups.com
Subject: Re: [dotcms] Mobile Detection and Redirection
Another free resource, this one open source, is OpenDDR, https://github.com/OpenDDRdotORG/OpenDDR-Resources.
--