[Pro] Mobile site redirect

In freeway pro how do I make it redirect a searcher to a mobile optimized site


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You could use a bit of javascript inserted into Page>Html Markup>After

<script type="text/javascript">
<!--
if (screen.width <= 699) {    document.location = "http://www.mysite.com/mobile";    }    //-->
</script>

Adjust to suit your chosen screensize.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks I will try but I have not used the html mark up yet. To make sure I would insert this code on master page?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

http://actionsforge.com/actions/view/277-breakpoint


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I would insert this code on master page?

Entirely up to you - if you do it on the Master then every page will redirect to the same page.

If you do it on individual pages then you can redirect to the corresponding mobile enhanced page ie redirect from yoursite.com/contactus.html to yoursite.com/mobile/contactus.html

Or use the action that Richard has reminded us about and provided the link to. It does the same job - code free.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’m no doubt being terribly dim here but presumably the mobile site version needs to designed as a separate Freeway project and can’t all be done from the same Freeway archive because the FTP upload directory isn’t the same.

Ashley


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It doesn’t have to be a separate document, you can also create a folder in your Site pane (use the little cog menu at the bottom) and move your mobile pages there. This is a trade-off of complexity, no actual reduction of complexity is possible. You want to always link between members of the same “size” site – so you don’t want to accidentally link between a page on the standard site and another page on the mobile site. Having two documents will make that trivial, because you’ll only ever see link targets from the one document. But if you want to copy content from one site to the other, it will mean switching between documents as you work.

Walter

On Dec 14, 2012, at 5:57 AM, Ashley wrote:

I’m no doubt being terribly dim here but presumably the mobile site version needs to designed as a separate Freeway project and can’t all be done from the same Freeway archive because the FTP upload directory isn’t the same.

Ashley


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter, I’ve never needed to do anything like this previously and hadn’t noticed the folder option before but that does make it much easier to organise and presumably Freeway then creates the sub directory at time of upload.

This is my first serious attempt at a mobile website using Freeway and I’m simply adapting the Ambient theme that I’m working on for the main site, so that it all has a coherent appearance. My one slight concern with this redirect is that it will block mobile users from being able to see the desktop version should they so wish.

Ashley


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That’s true, it is a rather crude switch. If I had a few moments I could add a cookie option so people could opt-out of the mobile and have that preference stick for the entire session. Maybe someone else has a moment to take this on? Let me know and I’ll add you to the project on ActionsForge so you have “commit rights”.

Walter

On Dec 14, 2012, at 10:27 AM, Ashley wrote:

Thanks Walter, I’ve never needed to do anything like this previously and hadn’t noticed the folder option before but that does make it much easier to organise and presumably Freeway then creates the sub directory at time of upload.

This is my first serious attempt at a mobile website using Freeway and I’m simply adapting the Ambient theme that I’m working on for the main site, so that it all has a coherent appearance. My one slight concern with this redirect is that it will block mobile users from being able to see the desktop version should they so wish.

Ashley


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options