When I upload my site to the live server, I have to go back into the Contemplate settings page and re-submit the page in order for it to pick up my disk-based templates.

I would imagine this has something to do a hardcoded base url in the Contemplate code... because my local has a different $base_url to the live.

Will try get a patch together next year.

Comments

Mark Theunissen’s picture

Title: Contemplates lost on an upload from localhost to live » Disk templates in sites/all/contemplates are not recognised when using multisite.
Status: Active » Closed (works as designed)

It's a problem with my (mis)use of the /sites/ directory for localhost and live versions of the same site. I have to make sure I visit the contemplate admin page when uploading the DB, else the contemplates are not picked up.

I can see why this is done, because for actual multisites it would probably make sense to work like this.

latte’s picture

Wouldn't this be better to store disk based templates in the sites templates/template-name directory.

1. Multiple PHP templates for a single site might have different teaser or body layouts.
2. If I am using a special admin template, I might want to see my content differently.

I am just playing devils advocate here but I think anything related to a template should be in the templates/template-name directory.
It just seems more efficient and makes more sense.

Just my two cents.

This aside I do have to give props to all who were involved in creating this mod. Without it I could have built some of my templates the way I wanted to.

Cheers,

Latte/