Add a non-published page via sitemap1 user found helpful
However, I prefer to add new pages via Dashboard > Full Sitemap > Add Page. But when I do this, the new page is immediately published. That means all visitors see an empty page until I add some content. And sometimes, adding content can take a while ...
So, my question is: Is it possible to add a non-published page via the sitemap? Where do I have to change/override the core files to achieve that functionality?
Add an unpublished page, name it "hidden".
Now add your pages as a sub-page of "hidden". When you are ready to publish it, move it under the page it is supposed to be under.
This will have to added benefit of allowing you to know whether a page has been published or not.
Where "Page 03" will not be accessible by your viewers since it is under "Hidden".
But actually I wanted to know if there's a (simple) way to override some code in the core files so that newly added pages aren't published immediately.
I don't if solved this but there is an attribute you can have in the array when you create a page using $page->add() that will create the page without publishing a version.
Check it our athttp://www.concrete5.org/community/forums/customizing_c5/programati...
thanks for your hint, but actually I'm looking for a way to add unpublished pages via the sitemap.
I very often use "replace_link_with_first_in_nav" on top-level pages. So, if I click on a link in the main navigation, I actually land on a second-level page:
If I want to add another second-level page, I first have to delete the final part of the URL to get back to to the top-level page:
From here, I can add a sub-page via the button in the admin bar.
This is not difficult for me, of course. But sometimes, it's not easy to explain to clients ... This is the reason why I prefer to add pages via the sitemap.