Create a Block

jabadco - May 16, 2007 - 12:16

Hi people
I am creating a Block to show the last Book or Pages , title and the first text of the topic.

<?php
print $block->subject;
?>

<?php
print $block->content;
?>

I think this is the starting. Wich PHP code can do that easier?
or, is there a module to do that?
I dont know so much about PHP, and I am improving my skills traying and trying.
Is the typical block in Newspapers, to show the lastest news and a little text in the Front Page, like TheNY Observer and so.

Thanks
o-)

Look at the views module

vjordan - May 16, 2007 - 13:38

which you can find here: http://drupal.org/project/views

 
 

Drupal is a registered trademark of Dries Buytaert.