Gossamer Forum
Home : Products : DBMan : Customization :

Adding SSI to results page

Quote Reply
Adding SSI to results page
Hi, I want to add an SSI call from the page generated by a database search. This itself is straightforward but the problem is that it's not being executed. I guess it's something to do with the fact the the page is being generated via Perl. Can anyone suggest a workaround or help in any way ??

Quote Reply
Re: Adding SSI to results page In reply to
Try it in a "static" page - if works there, but not your generated page you'll know that's the problem. I've seen a bunch of stuff regarding this issue. Search the forums (pay attention to the parameters) for SSI & Perl. I can think of some work-arounds if it is absolutely necessary that *have* to have the SSI, but they won't be pretty. (Example: On "search success" write search results to an shtml file & include SSI tag and then redirect browser to that page.)

However, I'm sure you'll find a more glamorous solution than that.

PS: bone up on SSI, you'll need to use "include" "virtual" "exec" depending on your path and what it is your plugging in.

Quote Reply
Re: Adding SSI to results page In reply to
Typical SSI directives (include/exec cgi) do not work in CGI scripts.

Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: Adding SSI to results page In reply to
Check out the FAQ under the section "Files / Records" there are two threads with easy solutions called:

SSI Include Replacement
SSI from within cgi

There are also various other threads related to using SSI.

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/