Disallow Add Page on a certain level in hierarchy

Permalink
Hi there

Can I define that the Add Page button should only appear on certain levels in a site's hierarchy?

Example: Customer's site has main groups in a header nav and pages unterneath that are shown in a side nav. Now, when on one of the side nav pages, I want to disallow addition of new pages (as these would be added as sub-pages that are intentionally not appearing in any menu).

Currently, the button is there and the customers keeps on adding pages that are then noch visible anywhere in the nav (sure, this is a training issue, but also not user-friendly).

I guess many of you have dealt with a similar situation, but I didn't find anything relating in this forum or on the web.

Any help and comments greatly appreciated!

Thanks in advance
Mart

 
Remo replied on at Permalink Reply
Remo
did you try to enable the advanced permission mode?

Add this to config/site.php

define('PERMISSIONS_MODEL', 'advanced');
gano replied on at Permalink Reply
Hi Remo

Tks a mill for the hint. Adv permissions is active and it works to a certain extend only.

My scenario: I have only one page type and the standard permissions need to allow adding pages as the customer will need to be able to do that. Now, for the pages that I created for them initially, I can simply revoke permissions and they won't be able to add any more pages below.

For instance: About us > Contact (on the latter I remove permissions).

But now, the customer goes in and adds another page below About us. In there, it will inherit either the parent page permissions (which need to allow page additions) or the standard ones (which allow page additions as I only have one page type).

For instance: About us > Some Bogus (on the latter, they'll now be able to add pages that are then not displayed in the navigation and end up in the "third level of navigation nirvana".

let me know if you see any mistake in my logic here. To me this sounds all pretty logic. In TYPO you can define how far down in the hierarchy page additions are allowed. I'm seeking for something similar.

Alternatively, if there would be a API code-wise where I can define that the add page button isn't displayed when in edit mode, I can hard-code that logic - that wouldn't be problem to do, but I didn't find anything related to that in the docs.

Thanks for now, really appreciate your thoughts and help as I'm getting the first c5 site up and running now and like it - a lot!

Mart