Drupal Community

Page 134

Chapter 9. Tidying up

118

If you want to include your categories in your menu, use the Taxonomy Menu module. It will provide hierarchical taxonomy menus and save you quite some time making them by hand.

9.2 What you can do right now Very often, users register because they want to reply to a post, ask a question, etc. Once they have done that, you need to inform them about what else they can do. I have created a block to put on the front page (fig 9.2) that will do just that. For each thing they can do, I’ve uploaded small icons in /sites/default/files/icons/12 . Here is the code of the block:

Figure 9.2: The to do block.

<h2>Welcome to Drupalfun</h2> <p>Here are a few things you can do right now...</p> <?php //get the content profile’s node ID for the user: global $user; $myuid=

$user->uid;

$node2= content_profile_load(profile, $myuid); 1 2

I got my icons from iconarchive.com Drupal 5 users: remember to replace content profile by nodeprofile and change

the directory to /files

118


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.