Hello - I've searched the forum and can't find the answer to my question - I'm wanting to include SSI with my Links templates - is this possible? I'm wanting to use the SSI for my main menu that I update often.
I kind of got it going - I'm trying to include by way of SSI a .txt file that is located at my site's root directory - so I'm including this tag: --#include file="http://www.mydomain.com/right_menu.txt"--
This doesnt work - I get this message - [an error occurred while processing this directive]
However - when I move the .txt file to the same directory as the .shtml file and change the path to --#include file="right_menu.txt"-- it works fine. Since the pages are built in various directories, etc., I obviously have to access the .txt file from a neutral location - so how can I have the .txt outside the same directory as the .shtml file and it still work?
The link to the mod give a 404 - what is the correct URL? And - i'm so close to this working with SSI - any help you could give would be appreciated...
Thanks - I'm finding no documentation with this mod - where is the documentation located? And I'm using external templates if this makes a difference. Regarding the SSI - is there another tag I could include that would access the external .txt file?
Once I've installed the new script - then what? What do I open to use it? What tags do I used to call the external .txt file? And no ideas on a new tag to use the regular SSI call? :)
Quoted from the enhanced template resource page......
>>>> Note: This parse() includes the changes for
<%include filename%> <%ifnot variable%> text <%endif%> <%if variable eq 'string'%> text <%endif%> You can use the following operators for comparision: eq, =, lt, gt, >, <. <<<<<
I have no idea what this means. I use external templates and simply want to include an external file - how can I do this either with an SSI (in view of my previous posts) or with this Template Mod?
Thanks Gene - but with all of the differing directories created by Links - how can I backstep to the .txt file I'm wanting to include? The backstep will be different for every directory...
Great - that solved it - thanks for all your help. Once I intalled the mod and put the .txt in my templates directory, everything worked fine. Thanks again!
well, I've never called it that but I understand....
I did away with the "backstepping" when it came to links and the header/footer files ( which have my navigation menu, etc ). I just hard coded mine and it works just fine for me....
That is how I did mine and it works fine. I even moved the template files ( add.html, modify.html, etc ) from the cgi-bin/links/admin/templates folder to the /menu_folder folder. That way, I didn't have to have the header/footer files in two different places