Forum OpenACS Q&A: Response to ad_host before page is loaded...

Collapse
Posted by David Kuczek on
Hello Jonathan,

I want to define the variable ad_host via the 4.5 "ad_host proc" (I just moved it to 3.2.5) for every page that is being loaded on my server, so that I don't have to define it in i.e. ad_header AND ad_footer, but only once and then get it with "upvar #1 ad_host ad_host".

I also have a pseudo subsite system that defines different ad_headers or different colored bars (ad_main_bar) for each subsite i.e. green for foo1.mysytem.com and black for foo2.mysystem.com...

Or doesn't it matter performance wise that I call ad_host around 10 times within a page (ad_footer, ad_header, 8x ad_main_bar)???