Gossamer Forum
Home : Products : Links 2.0 : Customization :

Which one do I work with? (site_html.pl or site_html_templates)

Quote Reply
Which one do I work with? (site_html.pl or site_html_templates)
I'm kind of confused, which files (site_html.pl or site_html_templates) should I be working with and what are the differences?
Quote Reply
Re: [Ames] Which one do I work with? (site_html.pl or site_html_templates) In reply to
Well, if ya wanna use templates, use site_htm_templates. You can edit the look of your pages mainly using the templates (still may need to alter Perl code some), generally easier to use.

Using site_html, all the output (HTML) code for the pages is contained inside that file. Only one file to edit, and you can do a bit more tricks with it, since it's still a Perl file (can run more if/else, etc within a page).

Most mods here are written for templates. Your choice...


Leonard
aka PerlFlunkie
Quote Reply
Re: [Ames] Which one do I work with? (site_html.pl or site_html_templates) In reply to
Based on what you wrote in your other thread about not being experienced with Perl/CGI programming, you should use the site_html_templates.pl file since by using this file you will be able to separate the Perl and HTML codes (just using <%TAG%> syntax in the template files to envoke the necessary output and Perl functions).

All you have to do is edit the template files in the templates folder.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] Which one do I work with? (site_html.pl or site_html_templates) In reply to
Is it possible to use both?
Quote Reply
Re: [Ames] Which one do I work with? (site_html.pl or site_html_templates) In reply to
In general the answer is no, one or the other, but there are a few mods around that require to to edit both files, the only one I can think of at the moment is the 'Site of the Day' Mod.

But general speak, I would just use templates as most mods are designed for this.
Quote Reply
Re: [stu2000] Which one do I work with? (site_html.pl or site_html_templates) In reply to
Some mods will work with either, and have instructions for both, but you can only use one or the other, I'm pretty sure. I have removed site_html.pl from my site, and everything works fine without it, as I use templates.


Leonard
aka PerlFlunkie