Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Setting a Cookie / Printing the header for the Search Results Page

Quote Reply
Setting a Cookie / Printing the header for the Search Results Page
What is the relevant hook to set a cookie / print a header on the search results page?


At the moment, I have tried a simple subroutine, that just prints "Content-type:text/plain". This is then called from each of these hooks:


search_results PRE Plugins::SetCookie::main FIRST
site_html_search_results PRE Plugins::SetCookie::main FIRST
site_html_search_results POST Plugins::SetCookie::main FIRST
search_results POST Plugins::SetCookie::main FIRST



Then, when I run my search results, all I get is

Content-type:text/plain Content-type: text/html Content-type:text/plain Content-type:text/plain

followed by the normal document contents.

{ How do I override the existing header? }

Last edited by:

giovanni: Aug 19, 2002, 12:27 PM
Subject Author Views Date
Thread Setting a Cookie / Printing the header for the Search Results Page Dafyyd 2797 Aug 19, 2002, 11:43 AM
Post Re: [giovanni] Setting a Cookie / Printing the header for the Search Results Page
Dafyyd 2641 Aug 19, 2002, 5:02 PM
Thread Re: [giovanni] Setting a Cookie / Printing the header for the Search Results Page
yogi 2672 Aug 20, 2002, 2:09 AM
Thread Re: [yogi] Setting a Cookie / Printing the header for the Search Results Page
Dafyyd 2660 Aug 20, 2002, 2:16 AM
Post Re: [giovanni] Setting a Cookie / Printing the header for the Search Results Page
yogi 2633 Aug 20, 2002, 2:19 AM