Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Idea on work around for SSI limitations

Quote Reply
Idea on work around for SSI limitations
Hi, I thought I'd give everyone, a better solution to the problem mentioned in my previous post.

1. Create a duplicate version of your HTML_Templates call it something like HTML_Fly_Templates.pm.

2. Create a Global Value in called 'fly' in each file.
ie: fly => 'on' #..HTML_Fly_Templates
fly => 'off' #..HTML_Templates

And set it to off in your original, and on in your new file. Then you don't have to maintain separate templates! Just use code like the following to beat the SSI limitations,m you can use this for all your exec files providing you can have write their data out to file.

<%if fly eq 'on'>
<img src=banner.cgi>etc...
<%endif%>
<%if fly eq 'off'%>
<!--#exec cmd="banner.cgi"-->
<%endif%>

Here's my funky little work around that may save you all some time.

~rl