Hi Folks,
I would like to call another cgi script within the Link 2.0 cgi-generated pages. Is this possible?
Normally, this banner script would be called by SSI, but I have to use the .shtml extension in order for the SSI to work on my server. So far, I have tried the following:
1) I changed the Links.cfg file to:
The name of an index file.
$build_index = "index.shtml";
# The extension to use for non index files:
$build_extension = ".shtml";
2) I installed the advanced template.pm add on and it appears to work correctly.
Results:
The banner script works great by calling it with the standard tag on my category pages, but not on any of the cgi generated pages such as add.cgi, search.cgi etc...
After installation of the Advanced template.pm, I tried using the same SSI tag (above) with no luck. Someone wrote here on the forum that the same tag should work --only he wrote it without the "<!--" exclamation mark at the beginning of the tag. I tried it that way too-- No luck.
I have spent hours searching all related LINKS 2.0 forums here and can't find out for sure whether a CGI script can be called from the Links - CGI generated pages or not. Or, what tag to use to do it.
Using the <%include filename%> tag suggested with all references to the advanced template.pm does not work because the banner script is not located in the same directory as the templates.
Does anyone have a concrete answer whether this can be done and if so --How do I do it?
Schoolmarm's Lil Red School House & Academic Resource Net.
http://www.schoolmarm.org/
I would like to call another cgi script within the Link 2.0 cgi-generated pages. Is this possible?
Normally, this banner script would be called by SSI, but I have to use the .shtml extension in order for the SSI to work on my server. So far, I have tried the following:
1) I changed the Links.cfg file to:
The name of an index file.
$build_index = "index.shtml";
# The extension to use for non index files:
$build_extension = ".shtml";
2) I installed the advanced template.pm add on and it appears to work correctly.
Results:
The banner script works great by calling it with the standard tag on my category pages, but not on any of the cgi generated pages such as add.cgi, search.cgi etc...
After installation of the Advanced template.pm, I tried using the same SSI tag (above) with no luck. Someone wrote here on the forum that the same tag should work --only he wrote it without the "<!--" exclamation mark at the beginning of the tag. I tried it that way too-- No luck.
I have spent hours searching all related LINKS 2.0 forums here and can't find out for sure whether a CGI script can be called from the Links - CGI generated pages or not. Or, what tag to use to do it.
Using the <%include filename%> tag suggested with all references to the advanced template.pm does not work because the banner script is not located in the same directory as the templates.
Does anyone have a concrete answer whether this can be done and if so --How do I do it?
Schoolmarm's Lil Red School House & Academic Resource Net.
http://www.schoolmarm.org/