We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37234
    • 44 Posts
    Using MODX Revolution 2.1.3, the site is setup with a standard homepage, other pages etc.

    For the next month i want to have a temporary splash page that appears with a message, and they have to click through to get to index.php. Any ideas?
    • This should be relatively easy. You could just add your splash page directly under the site root (parallel with the home page) and then change the system settings to make the site_start setting (you can search for that in the search bar at the top right) point to the ID of the new resource. This will make anyone coming to http://website.com/ will hit that page first.

      Hope this helps.
        Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. BlogTwitterLinkedInGitHub
      • As another note, it's strongly recommended that when you have some time, you upgrade to 2.1.5 and then to 2.2.4 so that you'll be on the latest, most secure version of MODX. There have been a number of important security releases since 2.1.3 came out.
          Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. BlogTwitterLinkedInGitHub
          • 3749
          • 24,544 Posts
          Is it necessary for everyone to see the splash page? Jay's method will only apply if they land on the site_start page. It won't affect people who follow a link to another page.

          If you need everyone to see it, you could put a snippet at the top of your template with something like this:

          [[!SplashSnippet]]


          <?php
          /* SplashSnippet */
          
          if (isset($_SESSION['splash_screen']) && $_SESSION['spash_screen'] == 'yes') {
             return '';
          } else {
             $_SESSION['splash_screen'] = 'yes';
             $modx->sendRedirect('url/of/splash/page');
          }


          Note that every user will see the splash page every time they visit the site, which could get pretty annoying.


          ------------------------------------------------------------------------------------------
          PLEASE, PLEASE specify the version of MODX you are using.
          MODX info for everyone: http://bobsguides.com/modx.html
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting