Calling the theme()-function in the page.tpl.php

soezkan - April 22, 2008 - 17:56

Hello,

does anybody know how the theme()-function works in a page.tpl.php??
I can't figure out how to place other blocks within my sourcecode.
I customized the internet center theme a bit
and I found the following function call pretty confusing:

print theme('links', $primary_links);

because I placed my menuitems within a different block than primary links.
How is that possible or how can I add other blocks to my page?

Sorry but I am still learning ...

Thanks so much,
Soezkan

You add blocks under

nevets - April 22, 2008 - 18:00

You add blocks under "Administer" > "Site building" > "Blocks".

Yes, I now that already.

soezkan - April 23, 2008 - 09:20

Yes, I now that already. Thank you.
But how do I "edit" my php-code in the "page.tpl.php" ??
I want to place an other region anywhere in the source.

Some help?
Thanks in advance!

Soezkan

For Drupal 5 see

nevets - April 23, 2008 - 13:30

For Drupal 5 see http://drupal.org/node/29139 on how to add regions to your theme.

 
 

Drupal is a registered trademark of Dries Buytaert.