php - Silverstripe 3.0 hide not allowed children from "add new" -


Silverstripe 3.1. * Pages which are not in the $ $ allowable child are disabled in the "Add New" menu. However, they are still showing in Silverstripe 3.0. If you want to create a page that is not allowed under selected parents, you receive an orange error notification:

"Page Type" Mypage "is allowed as the child of this parent page

I think this is a 3.0 point, you 3.1 Comparing the code and providing bridge requests for the 3.0 branch. The filthy workaround that works for you is to add the following line to the pages of your children, so that they can be allowed to build only the admin.

  Private static $ can_create = false;    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -