i have node name "news" that have title, body, location and description fields.
in the page view of the "news" node, i only want to display title and body only. i use contemplate to show only those 2 fields.
is there a way to create a block that display the other 2 fields (location and description fields) and show it only at that page.
i try to play around with view block but still can't find the solution.

Comments

mkalbere’s picture

I dont know contemplate but you can reach your needs by using cck and view modules.
You can add extra fields with cck, and configure you display by creating view blocks and pages .

edex13’s picture

thank you mkalbere for your quick reply.

your answer is not clear to me. Maybe because i didn't explain my question clearly.

so, i explain my problem and question again.

let say i add 2 more field to blog content type. the extra fields is age and location. the result of this form will be in page view:
1.title = "my first blog post"
2.body = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean dictum. Ut in justo. Ut eget lorem."
3.age= "10"
4.location= "earth"

let say the page url will be http://localhost/node/3

i know one of the way to theme node is using contemplate. i use to contemplate to display only title and body. i go to http://localhost/node/3 , i will only see title and body.

how can i output the age and location field in a block?
and when i go to other blog post, the block content change based on data of the age and location field

mkalbere’s picture

You made me discover contemplate, I have to explorer the possibilities, but it seems to me that it is a good way to customize the layout of a node.

My remark was : without contemplate you can easily achieve waht you want,

Use module.cck to add "age and location" fields.
Use module.view to create a new view to display the list of blog'spost. This modules allow you to create pages (with url you want), specifiing which info to display (fields=title,age,location ...), which post to display (filter: location=earth or all) in which order (sort).
You can also create block the same way.

edex13’s picture

thank you for the tips. i'll check it out later. a bit busy right now with other stuff