Is there a document showing the .tmpl commands we can use?
with a maginot page? I would like to apply some specific formating
to the title etc.
Hi Esstee,
If you're talking about formatting titles and such, aren't you talking styles rather than templates? I'm pretty sure that my templates create the overall structure of my news pages, including column layout, masthead, and calling on my CSS style sheet for fonts and such. My styles, on the other hand, determine the look of the news items themselves, such as the look of the subject line. My sense is that you can use pretty much anything you want in the way of Perl, HTML, CSS, etc. in your templates and styles.
For example, in the style code below, which I use for most of my full news articels, the h3 heading tag calls on the h3 declared in my stylesheet, which is called by my template. Note that the Perl code inserts an icon in news that's less than 2 days old and the IMG class and IF statement control how an image appears if one is present. (Thanks, mostly to Parahead it think, for the Perl and IF strategies). I also insert a horizontal rule at the end of each article. Simple, I know, but it's working for me.
I hope this helps. And thanks for sharing your development. It's very helpful to a newbie like me.
- Code: Select all
<PerlCode>
$consider_link_new = time() - (2 * (60*60*24));
if ($newstime > $consider_link_new){
</PerlCode>
<IMG class="floatLeft" SRC="http://www.etsdvt.org/ems/images/new_icon.gif" WIDTH="32" HEIGTH="30" BORDER="0">
<PerlCode>
}
</PerlCode>
<p><h3><Field: Subject></h3>
Posted by <a href="mailto:<Field: CustomField_AuthorEmail>"><Field: CustomField_AuthorName></a> on <Field: Date></p>
<If: Field: CustomField_ImageUpload1><br>
<img class=floatLeft src="<FilePath: CustomField_ImageUpload1>" width="200">
</If>
<Field: Text>
<hr style="text-align: left; margin-left: 0em; width: 75%">