Making an area global
Permalink
My NavBar is not located in the header.
Is there a way to make it global so I dont have to add the nav bar very time I add a new page?
Is there a way to make it global so I dont have to add the nav bar very time I add a new page?
Yes, just add a Global Area as described in this article:http://andrewembler.com/posts/stacks-vs.-scrapbooks/...
In your theme, instead of an Area, make a global area ...
You'll then get a Stack in the Stack area called "Sitewide Name of Area", put your navigation in there and it'll display on all pages!
Hope this helps - if it does be sure to mark it as an answer.
Job.
<?php $a = new GlobalArea('Name of Area'); $a->display($c); ?>
You'll then get a Stack in the Stack area called "Sitewide Name of Area", put your navigation in there and it'll display on all pages!
Hope this helps - if it does be sure to mark it as an answer.
Job.
Of couse. I knew that. Just didnt check the "harddrive"
Woof! THANK YOU!
You rock.
You rock.
Before using Jobs example, please remember to remove the '$c' variable, it shouldn't be present in a global area :)
its featured content helps in the process of what is being created on the web. Keep it up.
And what about a menu call with GLOBAL AREA to be translate with different language ?
I can't manage to make it works (the menu stay in ENG, but i have pages in FR)
I can't manage to make it works (the menu stay in ENG, but i have pages in FR)