We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25803 ☆ A M B ☆
    • 721 Posts
    I had a client recently lose their hosting (a long and strange story) so we moved to another host and made a very quick landing page as we develop the full site again (the good thing was they were ready for a responsive site and wanted a one pager anyway).

    We setup the temporary page in MODX and have been developing the real site as well, same server, same URL.

    However, due to the nature of one site links (i.e. <a href="#about">About Us</a>) when we click the link MODX always sends it to the site_start specific landing page. If we make the staging page the site_start, then it works, but we don't want the staging to be visible to the general public. I know we could go with a subdomain and move it later but is there anyway to avoid doing that?

    This question has been answered by donshakespeare. See the first response.

    • discuss.answer
      • 42562
      • 1,145 Posts
      Set
      <base href="http://inProgress.com/newLandingPage">

      Or
      <a href="http://inProgress.com/newLandingPage#about">About Us</a>

      Use [[~[[*id]]? &scheme=`full`]] #about if you like
        TinymceWrapper: Complete back/frontend content solution.
        Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
        5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Use the "site unavailable" setting and the "site unavailable" page to display as much as you want to the public. Everything else will only be visible to logged-in Manager users.
          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