silverstripe-cms icon indicating copy to clipboard operation
silverstripe-cms copied to clipboard

After adding can_be_root -- Can not create again.

Open cansozeri opened this issue 7 years ago • 3 comments

Hi I have added $can_be_root=false to my Article page. After that when I click to add page there is a message that "Note: Some page types are not allowed for this selection". I choose under another page option but the page type is disabled and I can not create a page wtih this tempalete anymore.

Now the interesting thing is = My page name is Article - I have a class named Article extends Page Class. If I create and copy Article to ArticlePage Class and after dev/build - I can create Article and ArticlePage template from admin panel. If I delete the ArticlePage class and after dev/build then Article is disabled again..

cansozeri avatar Nov 28 '17 14:11 cansozeri

FYI This can be reproduced in lesson 5

Create a virgin Silver Stripe instance Some place clone [email protected]:silverstripe/silverstripe-lessons-v4.git and checkout lesson-04-end Use rsync to copy mysite and themes from cloned lesson 5 into SS4 install change ownership of assets (sigh) and change the groups as per usual load the database from __assets/database.sql dev/build admin/pages add a page that is a sub-page of 'Travel Guides' (a ArticleHolder object) then note that for the possible types the new page can be, the onl.y valid type (ArticlePage) is greyed.

worikgh avatar Nov 28 '17 21:11 worikgh

@cansozeri are you using ss3? @worikgh confirms it's an issue in ss4 also.

tractorcow avatar Nov 29 '17 00:11 tractorcow

@tractorcow Hi I am using ss4 :=)

cansozeri avatar Nov 29 '17 19:11 cansozeri