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?
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
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);