Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 4.x > Installation and deployment > Ad-hoc template on a compiled web site View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
slycknick - 8/28/2009 9:31:03 AM
   
Ad-hoc template on a compiled web site
I have a compiled web site. When I create an ad-hoc template it doesn't appear to save it to disk and therefore I get an error. I'm running 4.1.
Is this a problem with the engine or my deployment configuration.


[Error loading the layout 'lt']
The file '/CMSAdhocTemplateLayouts/41af5f7a-a924-47cf-83db-37d6a4c15b2f.ascx' does not exist.


Nick

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 9/1/2009 7:23:48 AM
   
RE:Ad-hoc template on a compiled web site
Hi Nick,

Unfortunately, it's necessary to create ad-hoc template on your original (non-precompiled) site, then save all files to disk and compile and publish site again.

Best Regards,

Martin Dobsicek

User avatar
Member
Member
mbenist-earthlink - 9/8/2009 8:03:09 PM
   
RE:Ad-hoc template on a compiled web site
Martin,

I have the same situation. How will that work when my development environment isn't synchronized with the production environment? It would seem to me that all the changes made in production would be overwritten.

What strategy should be used to add new pages to the production site which include custom built web parts?

Thanks!
Mike

User avatar
Certified Developer v7
Certified  Developer v7
slycknick - 9/11/2009 8:35:32 AM
   
RE:Ad-hoc template on a compiled web site
After some experiments I found if you compile your site with the 'allow site to be updated' checked and 'Use fixed naming' you can add ad-hoc templates and modify transformations but you have to check them out once you have changed them. This writes them to disk and all seems to work ok.

Using the 'allow site to be updated' seems to be not reccomended by Kentico but they don't say why other than speed. The speed seems fine and the flexibility of being able to actually use the cms engine far outways and small speed loss.

Martin, I think you're in the same position as me. I have to publish and reup and code changes. Although as the site is updatable I can at least do it incrementally. Any new web pages created locally or modification to transformations etc. have to be repeated on the live site using the CMS engine.

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 9/16/2009 7:26:31 AM
   
RE:Ad-hoc template on a compiled web site
Hello,

It's not like we don't recommend using 'allow site to be updated' option. It's just we think that the speed difference between using pre-compilation with this option and not using it at all is not too significant, so it may be easier not to use pre-compilation at all in this case.

Best Regards,

Martin Dobsicek

User avatar
Certified Developer v7
Certified  Developer v7
slycknick - 9/16/2009 9:31:00 AM
   
RE:Ad-hoc template on a compiled web site
Hi Martin,

I tried not using pre-compilation but it creates a new set of problems. See my previous post.

http://devnet.kentico.com/Forums/f37/fp2/t9831/Compiled-Web-Site-deployment-errors.aspx

I just wish there was an easy way to effectively deploy a site while retaining the ability to remotely make changes. It is a big pain to not be able to make a small change to a transformation or create a new template without having to open the entire solution, make the change, publish it (90 mins on my machine) and move the code to the site.

Best Regards,
Nick

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 9/29/2009 1:51:06 AM
   
RE:Ad-hoc template on a compiled web site
Hi Nick,

If you don't use pre-compilation you can publish site to live server as described in Deployment to the live server topic of DevGuide.

Regarding the problem, my colleague has already answered the post, please check the answer there.

Best Regards,

Martin Dobsicek

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 9/16/2009 7:28:17 AM
   
RE:Ad-hoc template on a compiled web site
Hi Mike,

You could create template on your development environment and then import it to production environment. But you will also need to copy the file that is created on file system (using 'Save virtual objects to disk' button) manually.

Best Regards,

Martin Dobsicek