Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Preview Template Changes View modes: 
User avatar
Member
Member
rtk - 9/9/2010 5:50:25 PM
   
Preview Template Changes
Is there any way to preview changes to a template before publishing them?

For the actual content of a page this is an easy process that allows you to check out the document, make changes to the content, preview it, check the document back in, get it approved, and then publish it.

For templates, however, when you make a change it is immediately reflected on the live site. I have not found a good way to develop changes to existing templates easily. Currently I end up copying the page, saving the template as a new template and applying it to the copied page. Then, I can edit the copied template on the copied page and look at the changes through a web browser as I make them. Once I'm done, I either have to rename the original page to something else and then rename the copied page to the original page name (thus replacing the original page basically), or I have to take a gamble and apply the new template to the original page.

I've noticed that when I apply the newly changed template to the original page, a lot of times the content will disappear if I've added/removed web parts, etc.

Does anyone have a good method to "preview" template changes? Is this only possible with the content staging server feature of Kentico? Has anyone found a better method than the copy/paste method I'm currently using?

Thanks!

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/10/2010 2:34:00 AM
   
RE:Preview Template Changes
Hi,

Unfortunately workflow for page templates is not supported yet. This improvement is planned for one of the next versions of Kentico CMS. I am sorry for this inconvenience.

Right now you can use the approach you have described or use the content staging - you will test the page templates on development machine and if everything is OK, you will synchronize this changes to live server.

Regarding missing content - I assume that you mean the content of editable regions. If so, if you remove the web part from the page template - the content is missing, but as soon as you will add the editable region web part back again, with the same ID, the content will be displayed.

Best regards,
Juraj Ondrus