Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Quick Question

Quote Reply
Quick Question
Just a quickie! Is it possible to add a background image to all my links pages through the global command, If so would I have to edit the site_html.pl and the template.cfg.
It's my first time with a scipt so bare with me.
What would the command line look like, go on have a good laugh .

Quote Reply
Re: Quick Question In reply to
1) Add the following variable in your template.cfg file:

Code:

$body = qq|body background="/path/to/images/image.gif"|;


2) Then add the following GLOBAL tag definition in the %db_def hash in the site_html_templates.pl file:

Code:

body => $body


3) Then in your template files, simply add:

Code:

<%body%>


--------------This is a recording---------------

Of course, it would be A LOT easier to add common header and footer files, which has been discussed MANY times in the Links 2.0 Customization Forum!

Regards,

Eliot Lee
Quote Reply
Re: Quick Question In reply to
I'd like to know where the template.cfg file is because I don't remember there being one in links2!

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Quick Question In reply to
The template.cfg comes with the Yahoo Template Mod!

Regards,

Eliot Lee