Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Page Layout does not appear in the page layouts list

I have a feature that deploys a few site columns, a content type (inheriting from Page Publishing Content Type) and a page layout based on my content type.

Everything is fine on two tests, performed on different servers, but on the third server, although the feature is being activated correctly and I can see the site columns, content types and the page layout in the galleries, I cannot create a new page based on my page layout because the page layout does not appear in the list of available page layouts.

On all tests I have used the administrator account.

Does anybody have any thoughts on possible reasons for this?

Thanks.

like image 873
Tudor Olariu Avatar asked Mar 10 '09 16:03

Tudor Olariu


1 Answers

Did you have a look at the "Page layouts and site templates" page under Site Settings? On this page you can enable an option that limits the available page layouts to a specified list of page layouts.

I have worked on a project where we needed to limit the page layouts available on a custom site definition. We implemented this in a feature, that enabled the "limited page layouts" option and populated the list of available page layouts upon activation.

If this is the issue you are having you could simply turn off this option in the web interface or add the new page layouts manually, but you could also consider implementing a feature receiver that automatically adds your custom page layouts to the list of available layouts.

like image 81
Thomas Favrbo Avatar answered Oct 25 '22 19:10

Thomas Favrbo