Closed (fixed)
Project:
ImageField
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2006 at 16:07 UTC
Updated:
14 Dec 2006 at 05:45 UTC
Jump to comment: Most recent file
Comments
Comment #1
tema commentedhowever it's possible to theme the entire content type (via contemplate.module in my example) with imagefield as well. I'm totally distracted :-(
Comment #2
stanbroughl commentedyou can use the content template module (contemplate) to theme your out put - its specifically been designed to theme your cck output. I'm using it on the site i'm developing and its working great.
Lucy
Comment #3
tema commentedMy previous followup was posted just after checking this in contemplate.module, but the problem is exactly that imagefield fields not being passed through theme_field().
The advantage of CCK is ability to reuse typical content fields. In this case making templates for such fields is better than making it for each of content types (more Copy/Paste, less bug control). When a new content type is added there's no more work for theming if it reuse already themed fields. Moreover it's possible to control the order of fields in node with 'weight' value.
Comment #4
dopry commentedIt should passed through content_format which handles this now.
Comment #5
(not verified) commentedComment #6
magnestyuk commentedOpening this again. Changing one line in imagefield.module makes it themeable in a field-field_xxx.tpl.php file.
Find this line in the imagefield_field function
and change it to
Comment #7
magnestyuk commentedforgot to change status...
Comment #8
dopry commentedI'd strongly prefer you open new issues instead of opening long since closed issues.
that aside please submit you patch as a patch.
see http://www.drupal.org/diffandpatch
Comment #9
dopry commentedHere is an update patch that uses theme('field'... I think that code if left over from before theme_field existed, or I had some bone headed reason for not using it. please test if its kosher I'll probably make it a 4.7.2 series since the output changes would probably break live sites....
Comment #10
joshk commented++
Works for me. It seems to confuse imagecache a little (although that wasn't "working" right for me before), Overall this is a great improvement. No more losing images when previwing!
Comment #11
dopry commentedcommitted to DRUPAL-4-7 and HEAD.
Comment #12
(not verified) commented