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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Using embargo/expiry with page type on ModelAdmin


Go to End


893 Views

Avatar
nzstephenf

Community Member, 63 Posts

9 February 2015 at 3:46pm

Hey community,
I know your help, so far you guys have been a great help and I wonder if anyone can get this problem solved for me.

I have ArticlePages managed in a ModelAdmin using BetterButtons and BulkEditingTools for a much cleaner and easy way to manage content. I've successfully installed the embargo/expiry module with the required modules. All is good. But here is when it gets messy.

The embargo/expiry module works perfectly with pages under the 'Pages' section of the CMS. You can set a publish and unpublish date and the cronjob does its job. But the ModelAdmin with ArticlePage's refuses to work well with the module. Also at the creating step of an Article Page, it automatically shows up 'Saved' and 'Saved and Publish' but nothing has been done yet only just clicked 'Add New'. And also, when you create the content for the Article, then you want to click 'Save' and not Publish. It saves and publishes anyway. Don't know if that's a bug or something a rather. "Unpublish" also happens to remove the article completely from the site and not just delete the published article but keep the draft.

What can I do to get this or these (if the automatic saved, saved and published is a glitch) fixed?

Please help!

Thanks,
Stephen