Recent Topics

1 Nov 04, 2013 10:38    

By default, draft posts show up as if they were published for logged-in users (or possibly just for the post author, it's the same thing on my blog).

How can I turn that off so drafts just show up in the back end?

2 Nov 04, 2013 14:15

As long as the etiquete says "Draft" , even if you actually see them on your blog page as if they are published, no one else will see them untill you actually click "make public". I do not have however more users registered on my blog, so I can't say if other authors also see unpublished work by the others if they are logged in.

3 Nov 05, 2013 23:55

I understand how it works at the moment - the posts are not public until published.

But I want them not to appear on the front end at all until published, not even for the post author or logged-in users. Is that possible?

4 Nov 06, 2013 00:59

Hi @filthio,

I'm not sure this can be done with any configuration at the back-office because it's a little starnge requirement :D, but you can do it adding some hack to your skin. This case is for the standard evopress skin.

Add this code to file skins/evopress/_item.block.inc.php at line 19.


if( $Item->status == 'published' )
{

and then go to line 125 and add this:


}

This will avoid to show any item with status different to "published", no matter its author.

5 Nov 06, 2013 09:49

Thanks, that will do the trick.

Strange it might be, but it was default behaviour up until 2.x (I skipped 3 and most of 4 so I don't know about those).

6 Nov 06, 2013 09:58

Nice tip @filthio, I didn't know it. I came directly to v5.

Thanks !


Form is loading...