We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    I’ve never been completely confident in my understanding of the published/not published status.

    My guess has been that it’s just a setting that can be used by snippets like Wayfinder and that prevents access through index.php.

    Now, I have a practical question. SPForm, on submission, redirects to a "Thank You" page. Since it does it with sendRedirect(), it doesn’t care if the Thank You page is published or not. You’d never want the Thank You page to show up in a menu or be crawled by a search engine. Is there any reason to have it be published?

      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
      • 28215
      • 4,149 Posts
      Yes. Published pages won’t show up on the front-end, and trying to access them sends you to your 404 page.

      If you don’t want them indexed, you could always add a no-follow,no-index meta tag to the page.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 3749
        • 24,544 Posts
        Quote from: splittingred at Nov 24, 2008, 04:23 PM

        Yes. Published pages won’t show up on the front-end, and trying to access them sends you to your 404 page.

        If you don’t want them indexed, you could always add a no-follow,no-index meta tag to the page.

        In that case, there may be a bug in Revo because with sendRedirect(), the unpublished page definitely shows up in the front end when I’m not logged in even after clearing site cache, browser cache, and cookies. That’s what confused me.

        $responseURL = $this->modx->makeUrl($this->spfconfig['spfResponseID'],'','','full'); /* $spfResponseID is set in the config file */
        
        $this->modx->sendRedirect($responseURL,0);
          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