PDA

View Full Version : Stuff in footer dependent on body?


Kaitlyn2004
11-03-2008, 04:22 PM
So I have some stuff in my footer, but I don't want it to show up if - for example, there is an error (search - no results found).

However the footer template is fetched before the search determines no results.

Is there anything I can do about this?

Lynne
11-03-2008, 04:30 PM
The footer template is actually evaled when you call global.php at the top of the file. Is there someway you can put your custom code in another template?

Kaitlyn2004
11-03-2008, 04:46 PM
It's rather difficult to move everything around to support it in another template instead..

So what I ended up doing was put it in the *_complete of search, forum display and forum home... but I re-eval()'ed the footer..

I can';t really think of a better way but I know how inefficient eval() can be... any comments?

Lynne
11-03-2008, 05:13 PM
My only comment would be to take it out of the footer, but since you can't do that I guess you need to do your own work around. I'm guessing this is something you are putting on every page which is why you want it in the footer?