Preview of a blog-post

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
}
1 Like

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.