I'm kind of confused, which files (site_html.pl or site_html_templates) should I be working with and what are the differences?
Dec 8, 2002, 6:21 PM
Veteran (1350 posts)
Dec 8, 2002, 6:21 PM
Post #2 of 6
Views: 391
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
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
Dec 8, 2002, 7:34 PM
Veteran (17240 posts)
Dec 8, 2002, 7:34 PM
Post #3 of 6
Views: 387
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
All you have to do is edit the template files in the templates folder.
========================================
Buh Bye!
Cheers,
Me
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.
But general speak, I would just use templates as most mods are designed for this.
Dec 10, 2002, 10:01 AM
Veteran (1350 posts)
Dec 10, 2002, 10:01 AM
Post #6 of 6
Views: 350
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
Leonard
aka PerlFlunkie

