Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Problem with Mobile RedirectionProblem with Mobile Redirection
Previous
 
Next
New Post
6/2/2012 1:06 PM
 
Ian, it redirects to different page(s) so you can simply edit their settings and apply a skin (dotnetnuke PE/EE ship with a mobile enabled skin that uses media queries to support different viewport [screen] sizes)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/2/2012 2:55 PM
 

Hi Cathal

Yes I understand that.  It's just that I made a skin that makes use of the way divs can flow - a 960w skin for normal and a 480 for mobile with the same content.
Actually this is how URL master can be made to work. It seemed such a good method as for many types of pages maintaining 2 versions is a real pain / extra cost.

It is not working at the moment due to the way my host wires up domain aliases but it will soon.

Thanks for the information though - I may have my first PE client in the next few weeks.

Have a good weekend

Ian

http://www.royal-southern-academy.co.uk/


Mutate and Survive
 
New Post
6/2/2012 7:40 PM
 

I have a further problem with the redirection and its again amazing that this wasn't trapped in development or testing.

We have a mobile site that is (sadly, at the moment) non-DNN and its url is www.mycompany.com.au/mobile . When I redirect the DNN home page (www.mycompany.com.au) I get an infinite redirection loop (the bane of  DNN earlier in it's existence).

The reason is that when DNN begins a request it sets the current Tab to the Home page if there is no specific Tab requested. In the Mobile redirection interface the code looks at the current tab and queries the redirection data and determines that this Tab is to be redirected. So, in my case, it finds that the Home page is to go to /mobile/default.aspx (remember a non-DNN page) and it returns this and the Mobile Redirection code then does a response.redirect to it (I wonder if Server.Transfer might be better?). This is fine - so far.

But here's the crunch - since it is a new request and DNN has no specific Tab requested it sets the currentTab to the Home page and then asks the redirection interface if this tab is to be redirected and we have an infinite redirection loop.

Fortunately, the code changes required to fix this and the addition of Query Params in the redirection call are all in the MobileRedirectModule.cs module (Library\HttpModules\MobileRedirect\MobileRedirectModule.cs) and are fairly simple.

To correct the infinite loop I look to see if the request is for a DNN page and if not then I exit the Mobile Redirection call since DNN only redirects it's own pages to Mobile pages.

And to include the Query Params I rebuild the QS without the TabID param as this confuses DNN (the redirection is to tabid=XX but the query param is for tabid=YY and DNN doesn't know which tab to create) and append it to the redirection URL.

I will be testing these changes this week. We go live next week and so I have to be sure there are no issues but so far everything seems to be OK. The DNN source files I have used are for DNN 6.2 and I don't know if my code is compatible with earlier DNN versions that include the Mobile Redirection. The DLL affected is the DotNetNuke.HttpModulesw.dll.

I'm not sure what the protocol is for this forum but I am happy to share my changes.

Neil

 
New Post
6/4/2012 5:48 PM
 
please log this at support.dotnetnuke.com - it's probably more of an enhancement that a bug as our mobile solution is designed for redirection within DotNetNuke, but I think in this case perhaps log it as a bug so it's likely it will get attention quicker. When you create it if you provide suggested code change and check the "code fix supplied" checkbox it will also get accelerated for inclusion

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Problem with Mobile RedirectionProblem with Mobile Redirection


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out