Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

New template parser -- 3-level new mod

Quote Reply
New template parser -- 3-level new mod
Alex,

Is this new template parser designed to replace the new-graphics mod?

Code:
<%if DaysOld > '7'%>
<img src=/new14.gif>
<%endif%>

<%if DaysOld < '8'%>
<%if DaysOld > '3'%>
<img src=/new7.gif>
<%endif%>
<%endif%>

<%if DaysOld < '4'%>
<%if DaysOld > '1'%>
<img src=/new2.gif>
<%endif%>
<%endif%>

<%if DaysOld = '1'%>
<img src ="/new1.gif>
<%endif%>

This could be simplified to be:

Code:
<%if DaysOld < '15'%>
<img src ="/new<%DaysOld%>.gif>
<%endif%>

Right?

And with a few extra images in the images directory, the amount of template processing is significantly reduced....
Subject Author Views Date
Thread New template parser -- 3-level new mod pugdog 2064 Sep 13, 1999, 2:00 AM
Post Re: New template parser -- 3-level new mod
Alex 2002 Sep 13, 1999, 10:32 AM
Post Re: New template parser -- 3-level new mod
pugdog 2008 Sep 13, 1999, 12:57 PM
Post Re: New template parser -- 3-level new mod
pugdog 2001 Sep 15, 1999, 7:24 PM