Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Duplicating Templates View modes: 
User avatar
Member
Member
eoin-fusio - 10/9/2013 6:33:13 AM
   
Duplicating Templates
I'm working on a site developed by another company and need to duplicate one of their templates. The template folder is in CMSTemplates directory so I've duplicated all the content, updated the code in the relevant master pages so there are no errors in them and have added them as templates in the CMS.

In the CMS the templates appear to be working fine, it tells me which pages are using them etc. I've basically copied everything from the already existing templates created by the other company.

After going through each stage of duplicating the templates, creating a new page that uses this new template I keep getting a 404 when I try to view the new page. I've checked write permissions on the server for the code I copied and pasted, all seems ok. I've gone through each of the properties for the page and checked them against the previous year's info and they all match. I'm at a loss as to why the new page is giving me a 404.

When copying and pasting templates are 404s caused by something I should check for?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 10/9/2013 7:09:33 AM
   
RE:Duplicating Templates
Not sure how they have their 404 setup but if there is an error it could redirect to that page.

At any rate, if you're simply coping and pasting the files into a different folder you could get all kinds of errors simply because of the dulicate class names in the ascx and code behind files. It's a standard asp.net website so you need to ensure you have unique class names or at runtime when the page is accessed, it will error out.

User avatar
Member
Member
eoin-fusio - 10/9/2013 8:49:05 AM
   
RE:Duplicating Templates
Turns out you were right, they've set up their default error page to be a 404 for some reason, I turned that off in the webconfig and found my problem, a missing usercontrol.

Thanks for the help!