By quicksand on
Hello,
With CCK, i Created a new content type, with many different fields.
And when i created a content of this type, the view is very basic. I want to customize the positions of the fields in this page, and change colors, backgrounds...ect
How can i do that ?
Thanks a lot
Comments
The CCK module includes
The CCK module includes several CSS files to control the appearance of its generated output. If your current theme isn't calling those stylesheets, try doing so, or else borrow their rules for use in your own CSS.
Thanks, But i'm also trying
Thanks,
But i'm also trying to define a specific table to contain the different fields, and it's not possible to do that with the CSS, i think that i must modify the templates files, but how...
Are you using Views to
Are you using Views to provide a page or block display of your new content type, and have selected a view type "table?" If so, the resulting HTML should provide many opportunities to apply CSS.
probably the easiest way to
probably the easiest way to modify the template files is to use the http://drupal.org/project/contemplate module.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
I have found it ! 1 - Create
I have found it !
1 - Create File "node-custom_content_type.tpl.php
2 - Customize the apparence of generated output with DIV's & Tables.
3 - Print in cells, divs the output with
<?php print $node->field_myfield[0]['view'] ?>