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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

Simplify - new version allows customisation of the Tiny MCE HTML Editor


Go to End


30 Posts   7530 Views

Avatar
Victor

Community Member, 128 Posts

9 December 2009 at 4:48am

How can simplify prevent creation of top-level pages? Site Tree does not have any access permissions!

Avatar
Andrew Houle

Community Member, 140 Posts

9 December 2009 at 4:57am

I second that. I would love an easy way to prevent top level pages from being created!

Avatar
UncleCheese

Forum Moderator, 4102 Posts

9 December 2009 at 5:09am

Set:

static $can_be_root = false;

in all the page types that can be created

and

static $can_create = false;

to all the top level page types that cannot be created.

Avatar
davidm2010

Community Member, 107 Posts

17 December 2009 at 2:38pm

Uncle Cheese, if I add this, does this leave admin alone (i.e. admin can still create top level without having to comment it out)?

Avatar
Pike

Community Member, 42 Posts

22 December 2009 at 1:37am

Hi,

your site is down.
Can you send me your module Simplyfy 0.6 to my email?

Thx

Avatar
froog

Community Member, 43 Posts

29 December 2009 at 11:06am

Hi Pike, my apologies, my server has been down - its now up again, feel free to download it.
I've also attached v0.0.6 to this post as well, just in case :)

Avatar
froog

Community Member, 43 Posts

29 December 2009 at 11:17am

Hi Victor, Andrew, Uncle Cheese & David -

Simplify currently can disable page creation per user - so if you selected ALL checkboxes under the Simplify/Page Creation tab they wouldn't be able to create any pages.

However what I think you're asking is to still allow page creation, but not under Site Tree.

This can be done as Uncle Cheese suggests - but as davidm2010 asks, using that method admin cannot create the page.

I *should* be able to add a "Don't allow top level page creation" checkbox.
I'll look into it.

Avatar
Pike

Community Member, 42 Posts

29 December 2009 at 9:42pm

Very big thx, I've got it.