Closed (works as designed)
Project:
Node displays
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2010 at 15:56 UTC
Updated:
16 Mar 2010 at 09:37 UTC
Right now the field is template is:
<div class="field-name">
<div class="label">Label</div>
Field Content
</div>
I would however like to be able to theme the field content in a different way, and I need the field content itself to have a wrapper.
So please make the theme like this:
<div class="field-name">
<div class="label">Label</div>
<div class="field-name-content">Field Content</div>
</div>
Comments
Comment #1
swentel commentedAfter a few discussions with some theming people and looking at the way cck handles its field theming, it's probably more interesting to keep it the default way. However you can override the ds_field theming function with phptemplate, a bit like this:
Hope that's ok with you ?
Comment #2
ManyNancy commentedYes, thank you for your help. :)
Comment #3
ManyNancy commentedHi, there seems to be some problems with the function you showed me.
Here's the function, plus a couple of typo fixes. But it's still no good. The HTML is screwy, like it's missing a close div or something. I also don't see the content wrapper for some reason... Any clue what's going on? Thanks.
Comment #4
swentel commentedWorks perfectly on my end here - with 6.x.1-0 release - if you happen to run with a later dev version, than it's normal because the parameters have changed in that theming function.
I just pasted this in my template.php and cleared the cache so theme registry picked it up.