Forums / Setup & design / global variable not visible in advancedsearch
Marko Žmak
Monday 16 October 2006 4:37:50 am
I defined a global variable in pagelayout like this:
{def $search_classes=''} {set scope='global' search_classes=hash( ... hash deifnition... ) }
but when I try to use it in template for content/advancedsearch the variable is not available? Why? Is this a bug?
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth
Kristof Coomans
Monday 16 October 2006 11:52:12 pm
Hello Marko
The pagelayout is actually loaded after the module has been executed. Maybe you can use INI settings to solve your needs?
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
Tuesday 17 October 2006 5:45:22 am
What I actually need is to have the variable $search_classes defined in on place and use it both in pagelayout and advanced search. I preffer variables since is faster than INI setting. I think I'll solve it with include template.