By electronicmonkey on
Drupal 5 :
I need to add a block region at the top of nodes right after title . My theme is basic bluemarine. can someone tell me step by step how to do this ?
Drupal 5 :
I need to add a block region at the top of nodes right after title . My theme is basic bluemarine. can someone tell me step by step how to do this ?
Comments
Bumping this one up please.
Bumping this one up please. Anyone done something similar ?
New block regions
Hi there,
Suppose you want to define a new block region named 'floater' with use name 'Extra'.
Hereto you must define all existing regions together with the new region within a file bluemarine.info in your theme/bluemarine directory. If it does not exist, you must create one. Your example now has to look something like follows (excluding the dashed lines!):
----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
Observe your block region to be defined in the first line of the regions group. (mind you that all regions must be present in the list)
The next and last thing we have to do is placing a call to this region within the page.tpl.php file on the right spot where you want your region to appear.
In this case, immediately after the existing line which prints the page title, i.e. modify the template as follows:
Observe the $-sign in front of the name 'floater'.
Now, the options for block regions are the standard regions plus the new region 'Extra' (linked to $floater)
This should solve your problem.
Success.
follow-up
Forgot to mention that you have to clear the caches in order to get things working!
Gee thanks !!
Gee thanks !!
Your solution is for Drupal 6 though. Will it go well with Drupal 5 ?
Thats for Drupal 6, wasn't
Thats for Drupal 6, wasn't the requirement Drupal 5?
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
Sorry in what file do I put
Sorry in what file do I put this ? Not bluemarine.info I'm sure.
The Drupal 5 solution goes
The Drupal 5 solution goes in the theme template.php file.
Works like a charm. thanks
Works like a charm. thanks