I have a content type, lets call it "type1"
I created a template for it, lets call it "template1"
I edited template1 many times successfully
then I removed some of the extra tags (auto-created div tags) from that template, but left the php intact
then I found I COULD NOT EDIT the template: click on "Edit Template"... looked like it was loading... forever...
so I removed the template,
but then could not re-create it: Click on "Create template" ... loading forever
So I ran a test:
I duplicated the content type, lets call it "type2"
created a template for it, lets call it "template2"
and template2 loads and edits fine!
So, please help...
What is stopping Contemplate from creating a template for my content type1 ?

Comments

joshbotnet’s picture

Another way of asking the same question:

How do I completely delete a template so I can start again?

or... How do I check that a content type is "clean" ie. ready to have a template applied to it?

joshbotnet’s picture

By the way, clearing the cache does not fix this..

I clear the caches in the following way:

<?
echo "This page runs a script that clears the main cache.
";
db_query("DELETE FROM {cache} WHERE 1");
db_query("DELETE FROM {cache_filter} WHERE 1");
db_query("DELETE FROM {cache_menu} WHERE 1");
db_query("DELETE FROM {cache_page} WHERE 1");
echo "It's clear now.
";
?>

So to clarify my question further: is there anything else that I can clear, or delete, or change, so that I can create a template for this one particular content type?

I can create templates for all the other content types, just not this one (I can even create a template for the EXACT DUPLICATE of this one).

jrglasgow’s picture

you need to delete the row in the contemplate table for template1, this ability is being added to version 5.x-1.9

jrglasgow’s picture

version 5.x-1.9 releasing tonight

jrglasgow’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.