Hi,
We run Kentico 10, and are still on the Portal Engine. We want to be able to switch to a black and white version of our site for special event and then switch back again. We want to do this across the entire site, and do it with minimal effort. I've created a style sheet and some extra JavaScript for this, and it works well.
I cloned the current templates we use, and added the style sheets to the header, and the JavaScript just before the body tag (as they were required to be there to work properly). I did some research on the best way to change the site, and found that the database could be edited, specifically the 'DocumentPageTemplateId' column in the 'CMS_Document' table needed changing from it's current value, to the new template's id.
I ran query to do this on all of the pages, so that each template, was changed to the corresponding black and white template. For all the standard pages, this worked fine, however for any different page types (e.g. News or Blog Post) this doesn't seem to work. The id in the column has changed, but in the Kentico dashboard, it shows that it is still the old template. Annoyingly, if I change it in the Kentico dashboard, it then works, even updating the database id if I change it back.
It's definitely something to do with the page type, as making the news page or blog post type 'Behave as menu item' in properties makes it work. This however causes issues with the layout and would require a lot of work to sort out, so isn't an option. Is there anything I'm missing? Or is this a bug?
Any help would be appreciated.