I'm just looking for answers to some basic questions, but the Theme Developer's Guide is so high-level, it isn't very helpful to anyone just staring out of the gate.

How do most people deal with the Drupal administration nav? My public site leaves no room for such a nav, is it customary for administrators to use a different theme than the public?

I want to create a block, and put that block in my template. How is this done? I'm just looking for 'create block named X, place Y code in Z file to call this block'. Is this possible?

How do I create a dynamic menu? If I create a menu in the admin area, what code is needed to display that menu?

Comments

VM’s picture

for the administer nav, you can seperate it from the menu system in administer -> menus.
create a new menu, add the administer terms to it. This then cretates a new block. and with that new block you can set it so that it only shows on amin pages. there is also this handbook page on block visibility http://drupal.org/node/64135

pbarnett’s picture

What I did was to go to Administer/blocks, clicked 'configure' for the Navigation block, scrolled down to the 'Page specific visibility settings' bit, and selected the 'Show if the following PHP code returns TRUE' checkbox with the following code pasted into the 'Pages:' text field :-

<?php
global $user;
return ($user->uid == 1);
?>

This means that the Navigation block is only visible to the site admin, whose user id is 1.

Administer/blocks and Administer/menus is the way to go :-)

Shout if you need any more help...

Pete.

sepeck’s picture

http://tedserbinski.com/2006/09/20/menu_bar_2_0_released_from_belgium

I don't use it, I just integrate the admin stuff into my theme.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide