We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28000 ☆ A M B ☆
    • 397 Posts
    I am currently doing some research to find out what the best way is to server different HTML output dependent on if the user is currently on a mobile device or PC/Laptop. I ran into modMobile but is seems to not be further developed. I am not sure if it uses agent sniffing to determine the user's device or not. If so, that may not be the way to go as browsers can lie about who they are.

    Does anyone have any tips regarding this issue? I ran into a script and posted it here, but no one commented on it
    https://forums.modx.com/thread/82933/ress-design-ideas#dis-post-457680

    So may be there is a no brainer way to do this that I am missing or no one has any ideas?
      Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      I prefer using "responsive" design, but sometimes it's necessary to have totally different content for phone-sized screens, and using CSS to hide everything still means the user has to download everything, even if he's not going to see it. Depending on the overall design of the site, that may not be feasible.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 28000 ☆ A M B ☆
        • 397 Posts
        That is exactly the point. I have older websites that still use flash and we are determining how to make the site responsive on mobile devices while keeping the website as is for the pc / Laptop. That is why a server-side solution would be useful here - to not write the swf object code when we determine that the page is being shown on a mobile device.
          Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          http://modx.com/extras/package/mobiledetection

          I have also seen blogs recommending offering links for the user to choose his own "experience". This could be tied in to the above plugin.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 28000 ☆ A M B ☆
            • 397 Posts
            Thanks for the link!
              Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.