Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Re: perl code in template files?

Quote Reply
Re: perl code in template files? In reply to
Well, you should simply create a GLOBAL tag out of the &add_counter sub.

Like the following (and also like the WebAdverts modification referred many times in the Links 2.0 Customization Forum!):

Code:

counter => \&add_counter


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

Then use <%counter%> in your template files.

Regards,

Eliot Lee
Subject Author Views Date
Thread perl code in template files? cosmo 1276 Jan 23, 2001, 8:23 AM
Thread Re: perl code in template files?
Stealth 1222 Jan 23, 2001, 12:56 PM
Thread Re: perl code in template files?
cosmo 1194 Jan 24, 2001, 6:33 AM
Thread Re: perl code in template files?
Stealth 1208 Jan 24, 2001, 8:18 AM
Thread Re: perl code in template files?
cosmo 1200 Jan 24, 2001, 8:46 AM
Thread Re: perl code in template files?
Stealth 1193 Jan 24, 2001, 11:02 AM
Post Re: perl code in template files?
cosmo 1191 Jan 24, 2001, 3:39 PM