Developer forum

Forum » Templates » Search and replace template filename on Page table?

Search and replace template filename on Page table?

Jacob Storgaard Jensen
Reply

Hi, I have to change template (from html to Razor) on 2000+ pages on a site.
I want to know if it's enough to do a search and replace on the PageLayout column on the Page table? Or is there anything else to think about?


Replies

 
Nicolai Pedersen
Reply

Also on the area table you have the default layout. And there is also an itemtype to layout mapping file in \Files\System\Items - websitelayout.xml files.

 
Jacob Storgaard Jensen
Reply

Ok, I just tried a search and replace with at test template and test-page... the Filename is replaced when viewing the db, but when viewing which layout is choosen on the testpage's settings it's still the old template... Do I need to do an app pool recycle or something?

 
Nicolai Pedersen
Reply

Yes recycle. 

 

You must be logged in to post in the forum