Hi there, not sure if the process is the same as all of the other themes I've tried to add regions to but I've added the region to both the .info file and then add the code to the page.tpl file. The block region does not show up in the blocks admin page, and I receive the error 'Undefined index:"region name" in include()' referencing the line of code I added to the page tpl file to print out the region.

For the time being, I deleted the fourth footer region and am using that region name in my custom added code to place all of my custom region content and it works fine, so I know that the syntax I am using is not wrong.

Is there a step that I am missing?

Comments

borazslo’s picture

Clear the caches?

(For me it works:
in titan.info:
regions[add] = Adds in header

in page.tpl.php

<?php if ($page['add']): ?>
  <div id="add">
            <?php print render($page['add']); ?>
  </div> <!-- /#add -->
  <?php endif; ?>

)

Ashok Gj’s picture

I made the mistake of providing single quotes in regions array in the info file
that is...

Error Code:
regions['new_region'] = New Region


Correct Code:
regions[new_region] = New Region

TJ.P’s picture

I'm glad you guys took care of this, but wanted to mention - I had the same issue with v 7.23 when I added a new region to contain .swf files. (Except that my new region did show up in the list. Just threw the index error.) Thought it would be a syntax issue somewhere, but what fixed it was correcting a Block weight collision. ??? Can't say how/why, but that corrected my error.