I have found some info on how to exclude html you do not want to show up when pulling a record using SSI...
*******
Add a new value to your SSI string, for example &SSI=1
eg: db.cgi?db=default&uid=default&view_records=1&ID=*&SSI=1
Then, in your html_view_success sub, just put "UNLESS" statements around the sections of HTML you don't want displayed during an SSI call. eg:
unless ($in{'SSI'}) {
print qq|
....HTML you don't want displayed....
|;
}
print qq|
....HTML You want displayed....
|;
&html_footer unless ($in{'SSI'});
*******
I got this to work only if I put the unless statement in the html_record sub routine. However I am using the user-friendly version of the html.pl file and when I try to add the unless statement in the html_view_success sub routine I get a internal server misconfiguration error when the SSI is called.
I would really like to exclude the html_page_top and html_page_bottom from the SSI results.
any thoughts?
*******
Add a new value to your SSI string, for example &SSI=1
eg: db.cgi?db=default&uid=default&view_records=1&ID=*&SSI=1
Then, in your html_view_success sub, just put "UNLESS" statements around the sections of HTML you don't want displayed during an SSI call. eg:
unless ($in{'SSI'}) {
print qq|
....HTML you don't want displayed....
|;
}
print qq|
....HTML You want displayed....
|;
&html_footer unless ($in{'SSI'});
*******
I got this to work only if I put the unless statement in the html_record sub routine. However I am using the user-friendly version of the html.pl file and when I try to add the unless statement in the html_view_success sub routine I get a internal server misconfiguration error when the SSI is called.
I would really like to exclude the html_page_top and html_page_bottom from the SSI results.
any thoughts?