Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jonathan Saxon 59 posts 86 karma points
    May 22, 2012 @ 11:20
    Jonathan Saxon
    0

    51 degrees mobile integration

    I hava created a new umbraco site and have been asked to make a mobile site, so I decided I would take advantage of 51 degrees and umbraco however I am struggling can anyone help me with the following.

    <redirect
    firstRequestOnly="false"
    mobileHomePageUrl="http://whatsoninsthelens.sth.net/?alttemplate=mobileHome"
    timeout="20"
    devicesFile="~/App_Data/Devices.dat"
    mobilePagesRegex="/(Mobile|Tablet)/"
    originalUrlAsQueryString="false">
    <locations>

    <location name="default" url="http://whatsoninsthelens.sth.net?alttemplate=mobileHome">
    <add property="url" matchExpression="http://whatsoninsthelens.sth.net"/>
    <add property="IsMobileDevice" matchExpression="true"/>
    </location>

    <location name="category" url="~/{0}?alttemplate=mobileCategory" matchExpression="(?&lt;=/whatsoninsthelens.sth.net)/.*/" >
    <!--<add property="IsMobileDevice" matchExpression="true"/>-->
    </location>

    <!--
    <location name="details" url="~/{0}?alttemplate=mobileDetails" matchExpression="" >
    <add property="IsMobileDevice" matchExpression="true"/>
    </location>
    -->

    </locations>
    </redirect>

    I have the code above, the homepage doesn't work unless I remove the category location and I am struggling to get the right expression for the category location.

    The expression I currently have gets picked up if I call a url such as http://whatsoninsthelens.sth.net/visual-arts/ but a redirect is then done to add the ?alttemplate=mobileCategory but this also matches the expression so it ends up in a loop.

    Wondering if anyone can help with this or has achieved this on any sites you have worked on.

     

     

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies