XF 2.1 Globals Search Query

jgaulard

Active member
Hi,

Quick question. I would like to pull a few variables into an advertisement so I can display these things on either the forum view pages or the search results pages. I've already succeeded at making this one work so I can display the forum title on each forum view page in different locations:

{$__globals.forum.Node.title}

Notice how I appended "$__globals." to the beginning. That's the only way it works. I found this solution after searching these threads for a while.

I tried to do the same thing for the search query and it won't work. I get nothing. Here's the original template variable from the "search_results" template:

{$search.search_query}

And this is what I changed it to, to no avail:

{$__globals.search.search_query}

Does anyone have any suggestions that would help me use the search query variable in an advertisement. Also, I'm not sure if they're called "variables" or "snippets" of what. Please correct me.

Thanks!

Jay
 
Top Bottom