By navs on
I am trying to custom theme a particular content type's node page. When I leave the "print $content;" as it is, all the formatting for all the fields is intact. But in order to place different fields within different tables, I separate them by replacing the "print $content;" with "print $node->field_method[0]['value'];", "print $node->field_materials[0]['value'];" etc.
Doesnt data get stored in database with the html tags? How do I retain all that and yet be able to print each field separately?
Thanks
Navs
Comments
You are using raw values
CCK fields generally have two parts by the time you get to node rendering. One is ['value'] and the other is ['view'] Value will have the raw value that the user entered, while view will have the themed version of the field. Try using the view component in your templates instead.
Thank you imrook, you were
Thank you imrook, you were absolutely right.
Navs
Rock on!
I second that, imrook, you rock!