Do you know a tutorial to put different functionality on different pages.

Please Note: All posts made on this section of the forum will also be sent a mailing list. Before posting ensure that this is the appropriate forum.

How to create custom modules on different pages?

I'd like to find out how to have one page that displays a blog in the top half and a RSS feed in the bottom half of the content area, for example, and then on another page, have a Voting Poll on the top and a list of stories at the bottom for example.


Links appreciated.

Thanks,

Mark

Re: Do you know a tutorial to put different functionality on ...

Hi,I'm gonna tell you some useful tips for custom module development in drupal

 1.Make a little info about Module Name, Package Name and Version Information and Dependencies.

 2.Install hook_install()to create tables and store value in the database and variable_del() function in hook_uninstall() to delete variables that are used in the module.

 3.Don't use Direct queries for updating node/taxonomy/comment always use api function.

$node = node_load($nid);

 $node->status = 1; // or 0 for unpublish

 node_save($node);

 4.Don't forget to write hook_update()


thanks&regards

drupal developer

Built using Drupal. South African Web Design and Hosting by eConsultant.