Hi,

I can't add regions. I added this in kanji.info : regions[new_region] = New region.
I added this in page.tpl.php :
if($page['new_region']):

print render($page['new_region']);

endif;
What is the problem please ?

Comments

donnycarette’s picture

Did you cleared the cache?

Personne’s picture

No, i didn't clear. Today, i have a new block. I try to obtain other blocks. I clear the cache. I have this :
Notice: Undefined index: new_region2 in include() (line 100 of C:\wamp\www\Drupal 7\drupal-7.10\themes\kanji\page.tpl.php).

Why ?

Personne’s picture

Status: Active » Closed (fixed)
Personne’s picture

Status: Closed (fixed) » Active
donnycarette’s picture

Every time, you add a region:
- you'll have to do this inside kanji.info
- place this inside page.tpl.php
- clear cache

if ($page['custom_region']): print render($page['custom_region']); endif;
Personne’s picture

Status: Active » Closed (fixed)

Ok, thank you very much. The block appeared.