Hello,

i have just started to use drupal.

can someone please advice me, how could i display node content inside a block?
i have footer block and i would like to display in that only text from node content. can i do it with views?

Comments

nagarajanl’s picture

Yes, you can do that nicely using views. Create a 'block' view with the 'node body (or) teaser' as field and expose the block to the footer region using '/admin/build/views'.

You can get more information from here..
http://learnbythedrop.com/drop/147

keevitaja’s picture

i set the view to display the body. i get output:

body:

here is my content.....

how can i remove this body: label? and how is the best way to tell the view which node to display?

willhowlett’s picture

Click on the body field to edit it, then delete the text from the label field.

Under 'filters' use the node ID filter, and filter to the node ID of the content you want to display

keevitaja’s picture

well the label is empty and label html element set to none

also filter is not working. i get allways the same node into my footer. maybe i did something wrong. which setting i should check?

when i changed label to "test", still body was outputted...

EDIT: i did it. just recreated the view and it worked.

keevitaja’s picture

i have a problem again. i following configuration:

mythem.info: regions[slider] = Slider
page--front.tpl.php:

print render($page['slider']);

(divs are outputed)
view: block, fields are set, filter: Taxonomy: Term = test

in nodes test is given. block is set!

somehow the block is not showing the nodes. why?