We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22840
    • 1,572 Posts
    Hi,

    I am running Revo 2.2.4 and need a way to redirect to a certain doc if the site is accessed via a mobile device so that I can show a mobile template and nav.

    What would be the best way to achieve this ?

    Cheers
      • 11076
      • 159 Posts
      i assume you can use one of the following extras:
        Michael Shraibman( gOmp)  | Freelance Design & Development | wink  impossible is nothing...
        • 22840
        • 1,572 Posts
        Hi,

        Thanks for replying, can't see on either of them how to redirect to a certain page ID though ?

        Cheers
          • 22840
          • 1,572 Posts
          Ok tried the modMobile one so that I could just choose a template but it doesnt work, errors on install are :

          Attempting to install package with signature: modmobile-1.0.1-pl
          Package found...now preparing to install.
          Grabbing package workspace...
          Workspace environment initiated, now installing package...
          Error 42S22 executing statement: Array ( [0] => 42S22 [1] => 1054 [2] => Unknown column 'modPluginEvent.name' in 'where clause' )
          Error 23000 executing statement: INSERT INTO `modx_site_plugin_events` (`pluginid`, `event`, `priority`, `propertyset`) VALUES (6, '', 0, 0) Array ( [0] => 23000 [1] => 1062 [2] => Duplicate entry '6-' for key 'PRIMARY' )
          Error saving vehicle object of class modPluginEvent; criteria: Array ( [name] => )
          Could not install related objects with locally owned keys for vehicle object of class modPlugin; criteria: Array ( [name] => modMobile )
          Running PHP Resolver.
          Assigning Events to Plugin modMobile
          Error 23000 executing statement: INSERT INTO `modx_site_plugin_events` (`pluginid`, `event`, `priority`, `propertyset`) VALUES (6, 'OnLoadWebDocument', 0, 0) Array ( [0] => 23000 [1] => 1062 [2] => Duplicate entry '6-OnLoadWebDocument' for key 'PRIMARY' )
          Script resolver actions completed
          Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => modmobile.mobile_template )
          Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => modmobile.get_var )
          Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => modmobile.use_if )
          Successfully installed package modmobile-1.0.1-pl


          Then when I try to goto the site on my mobile I just get error messages.

            • 36624
            • 535 Posts
            i have the same errors.. i think the plugin is not 2.2.5 compatible but not sure ..

            try this : https://forums.modx.com/thread/19300/mobile-website?page=3#dis-post-106899
              CTRL+SHIFT+U - Clear Cache
              CTRL+SHIFT+H - Hiding Heft Panel
              CTRL+SHIFT+N - Fast Create Resource
              CTRL+ALT+P - Preview Recource (in edit resorce window)
              CTRL+ALT+S - Save