How to change the Page Type?

Permalink
I might be getting blind at a young age but I haven't found out any place from the 5.7 UI where I can change the page type of a page once it's created.

I know how to change the template but I've yet to find out how to modify the page type without doing that manually straight to the DB.

Anyone who could shed some light on this? I've spent way too much time finding this out from the UI. Also checked the docs but I did not see anything mentioned about this. And _tried_ to search the forums as well but did not find anything related to this.

Mainio
 
andrew replied on at Permalink Reply
andrew
This is currently not something you can do from the UI. In most cases you won't need to change a page type - you'll only need to if you decide you want to interact with a page programmatically (by its type) and haven't set that type to what you want already.

This is done by design, mostly because changing a page type is a complex problem - at least it is if we try and ensure that the page type gets changed to only those that follow all the various rules, etc. That said this really is something we ought to allow at least the super user to do.

Sent from my iPhone

> On Dec 10, 2014, at 7:48 AM, concrete5 Community <discussions@concretecms.com> wrote:
Mainio replied on at Permalink Reply
Mainio
OK, thanks for the info.

I think it should be allowed at least for super user as you said, or someone who "knows what they're doing".

I needed to do this because I decided that I wanted to type specific pages to a page type to make it easier for the client to add new ones. And this was about "cases", I wanted to create a simpler way to add new cases than copying an existing page. Before, they needed to add a "Page" with a certain template and all the elements to it, but now they can just add a "Case" with the predefined blocks in it.

I did not see this while developing the site but when it was handed to the client it quickly became obvious that we needed to make it more easy for them. So, I think the system should accommodate to this need.

I really hope to see it in a future version, although in this case it was pretty easy to change to the DB as well. Both pages had 100% same kind of composer forms set for them.

Regarding that, I also think it would be very useful if we could define the forms separately from the page types. So we could use form X on page types A, B, C and D. On this site we currently have 4 different page types and they all have 100% the same forms. Which meant we had to create the same form 4 times. Not that bad as we only really need to do it once per site but could be easier as well.

Maybe it would then be also easier to change the page type right? Like allow the user to change the page type only to those types that use the same form as the original page?