Global Areas sometimes empty
Permalink
Hi all,
I have created my first theme with concrete, and it's great.
But I have some problems.
this is my function
<?php
if($c->getCollectionTypeName() == "Full") {
$a = new GlobalArea('Header Nav HP');
$a->display();
} else {
$a = new GlobalArea('Header Nav Other');
$a->display();
}
?>
Sometimes, if I load the page there is no navigation block in this area. After realod there is one.
The second problem, if I edit the page there is no block in this area.
Also the html code is empty.
Any idea?
I have created my first theme with concrete, and it's great.
But I have some problems.
this is my function
<?php
if($c->getCollectionTypeName() == "Full") {
$a = new GlobalArea('Header Nav HP');
$a->display();
} else {
$a = new GlobalArea('Header Nav Other');
$a->display();
}
?>
Sometimes, if I load the page there is no navigation block in this area. After realod there is one.
The second problem, if I edit the page there is no block in this area.
Also the html code is empty.
Any idea?
Solution: You can change the name of that Global Area.
Rony