Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Unpublished site viewable on frontend


Go to End


1050 Views

Avatar
Mackodlak

Community Member, 95 Posts

3 June 2011 at 9:41pm

Edited: 03/06/2011 9:43pm

OK, this may sound stupid at first (mby), but let me explain.
I am using a blog module for news section, and have to extend it. I have done most of the changes required it to function as a news section, and atm it is looking fine.
Now my boss asked me to find a way to do the following:
The writer writes a news(new blog entry) and instead of publishing it he should just be able to create it (so it's a new page, saved, but not published). The editor should be able to view that page frontend and be able to edit it (so basically retain all the functionalities as if the page was published), but none of the other ppl should be able to see the page.
Then, after editing it frontend (never having to go to /admin) and saving the changes he can publish it.
I don't know how to do this... Can unpublished sites be viewed in frontend at all? how to accomplish this? Also if that is possible how to add a publish button with every new news that would disappear once the news is published?
I was thinking of adding an extra checkbox that would be viewable only by editors (permission) and then place an if function, sth like (if (viewable || checkbox) ... ) but my boss says that is a workarround and he isn't prepared to give in to it unill we know for sure publish function cannot be used as described.