Active
Project:
Content Templates (Contemplate)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2008 at 22:11 UTC
Updated:
18 Jul 2008 at 16:18 UTC
This could be a 5x issue because in fact this came up during a couple of 4.7 -> 6.3 upgrades. Essentially, after upgrade, it shows no templates for any content type.
If I go into the contemplate database table, my types are things like "content-climb". If I change the hyphen to an underscore ("content_climb") the templates show up and work as expected.
So somehow, a template with a hyphen worked fine in 4.7, but not in 6.3
Comments
Comment #1
sampeckham commentedThis sounds like the same issue I'm having. Although i'm new to Drupal, so started on version 6. But saw the demo of content template on D5 screencast.
So would you say this is the same as: http://drupal.org/node/283315 ?
If so, is it safe to change the - to _ in the database or should I wait until a fix/update?
Comment #2
ergophobe commentedBasically, I figured mine out by doing a DB dump, adding a new template, doing another DB dump and then doing a diff to compare the files. That was the significant difference I saw and in my case the templates created in D6 were visible in D6 (I had in fact read your post but wasn't really sure what exact behavior you were experiencing on that score).
>>If so, is it safe to
Correct me if I've misunderstood, but your site isn't working now anyway, is it? So what's the harm in trying? In my case, I always upgrade in a sandbox and then move everything over, so no risk.
In any case, the templates are not visible, so if you change the - to _ and it still doesn't work, you've lost nothing. Just change it back. So change it for one content type and see what happens. If it works, change it for the rest. Is it safe? So far so good, but there are still places in the DB where that name is hyphenated.
Oh, and be sure to clear your cache. In D6 you do that by going to Admin -> Performance and look for the button to clear the cache.