Page layout does not appear in page layout list

I have a function that deploys several columns of a site, a content type (inheriting from the content type of the page publication) and a page layout based on my content type.

Everything works fine on two tests running on different servers, but on the third server, although the function activates correctly, and I can see the site columns, content types and page layout in galleries, I can’t create a new page based on the page layout, since The page layout does not appear in the list of available page layouts.

In all tests, I used the administrator account.

Does anyone have any thoughts on the possible reasons for this?

Thanks.

+4
source share
5 answers

Thank you all for your answers.

What actually happened is that for some reason the page layout was expanded as a master page, and not as a page layout. The administrator manually changed this, and now it works.

+2
source

Have you viewed the page "Page layouts and site templates" in the "Site Settings" section? On this page, you can enable an option that restricts the available page layouts to a specified list of page layouts.

I was working on a project where we needed to limit page layouts to custom site definitions. We implemented this in a function that enabled the "Limited pages" option and populated the list of available page layouts upon activation.

If this is the problem you are facing, you can simply turn off this option in the web interface or manually add new page layouts, but you can also consider using a function sink that automatically adds your own page layouts to the list of available layouts.

+12
source

This is just an educated guess, but check if the page layout is expecting to be registered or approved.

+1
source

In my case, the path for the layout was wrong, so the layout itself was in a different place when I fixed that I could see the results.

+1
source

I added the files manually and it did not appear. When I edited the properties of this layout page from the user interface and saved it, it appeared.

0
source

All Articles