Template filename not found out of CCK>theme folder
| Project: | Content Construction Kit (CCK) |
| Version: | 6.x-2.6 |
| Component: | General |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Hi,
I'm having trouble implementing a template file for a custom-made field. I'm using the blueprint theme and did the following:
- Install drupal 6.x
- install CCK-module
- install and enable blueprint theme
- goto content>contenttypes>page>manage-fields
- add new field with label 'yourlabel' and name 'myname' of type text
- add a new page with dummy content
Now add a template file for this specific field ex: 'content-field-field_myname.tpl.php' in the blueprint themefolder.
Change something which should be visible when you view this page.
CCK doesn't seem to use this specific field-template. It keeps using the default content-field.tpl.php. Strangely enough, if I add the file to the CCK-theme-folder I doest seem to find the template-file. Am I doing something wrong, or is this a weird CCK-bug?
Greetings Wytze

#1
Have you tried rebuilding the theme registry?
#2
Yes, this was one of the first things i've tried. This doesn't seen to change anything.
#3
#4
Oh, I think this is related to: #292884: can't override content-field.tpl.php?
In other words, you need to copy content-field.tpl.php as-is to your theme folder too. Otherwise, Drupal won't be able to find your variation of the same template.
Drupal issue: #279573: Themes can't use node-story.tpl.php without node.tpl.php
Does that matches your case?