Hello!

In the bluemarine them, I changed the location of the right_sidebar in page.tpl.php and now I want to change the name to "second_left_sidebar". I know where to update the .css info; but where do we update the names of the region so it appears properly in the blocks configuration settings?

Thanks!

Comments

peterjlord’s picture

In the themes directory create a file called template.php and in this file paste in the code below

<?php
function bluemarine_regions() {
  return array(
    'left' => t('left sidebar'),
    'seconded_left_sidebar', => t('second left sidebar'),
    'content' => t('content'),
    'header' => t('header'),
    'footer' => t('footer')
   );
}
?>

This should then appear in the Admin > Blocks

You can have as many regions as you like

<?php

function bluemarine_regions() {
  return array(
       'header_nav' => t('header navigation'),
       'right' => t('right sidebar'),
       'left' => t('left sidebar'),
       'tab_region' => t('tabbed region'),
       'content_top' => t('content top'),
       'content_bottom' => t('content bottom'),
       'header' => t('header'),
       'footer' => t('footer')
  );
}
?>
neo_silkroad’s picture

Dear plord,

Thanks! Worked perfect! I hope you don't mind me asking a question.

When I made the move, I created a new style.css entry by copying the old one, sidebar-right, and renaming it sidebar-left2. Then, of course, I made the corresponding change in page.tpl.php ..

Unfortunately, drupal does not pick up the new .css entry. I have tried on multiple browsers.

Where did I go wrong on CSS?

neo_silkroad’s picture

Hi plord,

I think the CSS issue is a caching issue....

Cheers and thanks!

peterjlord’s picture

Pleased you got it sorted out :)

I've been using drupal a few months and once you get into it is really is a powerful CMS. Try the drupal dojo website it has some screencasts for beginners. It has a couple on theming I think

neo_silkroad’s picture

Thanks again for the help, plord!

BTW, the drupal dojo seems to be a nogo, as I found trying to view any lesson a "not happening" as in... put up up on YouTube, so we can actually view em without magic dust and a barrel of hassle :)