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.

All other Modules

Discuss all other Modules here.

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

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


Reply

30 Posts   5774 Views

Avatar
Victor

9 December 2009 at 4:48am Community Member, 128 Posts

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

Avatar
Andrew Houle

9 December 2009 at 4:57am Community Member, 132 Posts

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

Avatar
UncleCheese

9 December 2009 at 5:09am 4085 Posts

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

17 December 2009 at 2:38pm Community Member, 107 Posts

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

22 December 2009 at 1:37am Community Member, 40 Posts

Hi,

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

Thx

Avatar
froog

29 December 2009 at 11:06am Community Member, 43 Posts

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

29 December 2009 at 11:17am Community Member, 43 Posts

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

29 December 2009 at 9:42pm Community Member, 40 Posts

Very big thx, I've got it.