Forums / Setup & design / global variable not visible in advancedsearch

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

global variable not visible in advancedsearch

Author Message

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

Marko Žmak

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.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth