i have added a field(hello) to the content type "story",now i want to print it in the page.tpl.php and node.tpl.php,how should i do.
two: if i want to overwrite the display style of the added field of CCK,how to overwrite it? any tips would be appreciated.

Comments

tsega’s picture

I would suggest Content Template. It allows you add any of the fields you have added. Even with the option of leaving out some of the unnecessary ones. I also like the fact that you do this with in your Drupal administration interface with option to change the look of either the teaser, full display, or both. It's neat!!!

It may not be helpful if you want to package the look as a theme, but come to think of it, neither does CCK.

runeveryday’s picture

thanks for your reply,and i have installed it,but it seems can't do some changes to the article title.if i want to added a subtitle near the each article title,how to do it?

Anonymous’s picture

I would suggest incorporating the view's module into your content display. Views would let you chose which CCK fields to display, where to display them, and what label to give them.

I would create another input field titled sub-title and add that to your story content. Then, create a view that outputs your title, sub-title, author and teaser. Which ever fields you need. In the full node view, you will see your CCk created fields. You can also manage the fields from the 'Content' > 'Content Types' administer menu.

runeveryday’s picture

i know use views module can get the display,but when i click into each article,there is no sub-title ,i want to when i get into the article,there is also a sub-title there.

Anonymous’s picture

That's what CCK fields are for! Just create a Sub-Title field on your story/blog content and It will display on your full node posts.