Closed (fixed)
Project:
Kanji
Version:
7.x-2.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
8 Jan 2012 at 14:08 UTC
Updated:
9 Jan 2012 at 15:13 UTC
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
Comment #1
donnycarette commentedDid you cleared the cache?
Comment #2
Personne commentedNo, 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 ?
Comment #3
Personne commentedComment #4
Personne commentedComment #5
donnycarette commentedEvery time, you add a region:
- you'll have to do this inside kanji.info
- place this inside page.tpl.php
- clear cache
Comment #6
Personne commentedOk, thank you very much. The block appeared.