Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Adding SSI To Templates

Quote Reply
Adding SSI To Templates
I was wondering if there is a way to add ssi to the templates to where it wouldn't automatically write it in the page. So when i updated the ssi link that it would update on the links pages.

Quote Reply
Re: Adding SSI To Templates In reply to
Use global variables....

Define tags in the %globals hash in the site_html_templates.pl file.

Then add tags in your template files.

Example:

Put these codes in the links.cfg file:

Code:

$footer = qq|HTML CODES|;


Then in the %globals hash in the site_html_templates.pl file:

Code:

footer => $footer


Then in template files:

Code:

<%footer%>


Got it?

Regards,

Eliot Lee
Quote Reply
Re: Adding SSI To Templates In reply to
Thanks Man That Helps alot.

Quote Reply
Re: Adding SSI To Templates In reply to
You're welcome.

Regards,

Eliot Lee