New Page Type - Theme layout always default
Created 7 years ago by kiltedup

Greetings!

I had created a new Page Type and added a bunch of pages. The page type was using 'default' theme layout. I then added a new theme layout and updated the page type to use that layout. However, the pages using that type are still using the 'default' layout.

Does anyone know what needs to be done to get the correct theme to load in this scenario.

Is it a clear cache or clear compiled or something similar?

Many thanks in advance

Dave

ryanthompson  —  7 years ago

The pages AND types both have a theme_layout field. That way you don't need to make new types just to change the layout. Chances are all your pages also have default set. So updating those should fix that.

In the meanwhile.. Ill open up an issue because really I think it would be best if the theme_layout is NULL unless otherwise changed. So it can fallback to the type's value.