Hello!
Is there actually a possibility of previewing a blog-posting to publish or can I check the finished formatting only after the publishing?
you can click the preview link from the panel, so the page will load for you.
e.g. your blog will only show āvisibleā pages, so unless you change it to visible, people will not be able to see it.
foreach($page->children()->visible() as $blog){
// only visible blogs will show
}
My goodness, I was blind. Thank you!
just be careful, if you are using a sitemap, which collects all pages, it ācouldā also index a page which is not yet visible, unless you filter for visibility every time.
within the blog article you could create a controller to check:
<?php
if($page->isInvisible() && !$site->user()){
go($page->parent()->url());
}
so even someone could guess an url they wouldnāt be able to access it.