[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] If and the time tag
At 08:33 PM 10/07/2002 -0700, you wrote:
>Hi,
>
>I have tried the following pieces of code but none seem to
>work I would appreciate if someone could help me out.
>
>[seti mytime][time]%Y-%m-%d[/time][/seti]
>[if base="item-data products" field=creation_date op="=~"
>compare="/[scratch mytime]/"]
><img src="__IMAGE_DIR__/navigation/new.gif" border="0">
>[/if]
>
>[if-item-data products creation_date ==
>'[time]%Y-%m-%d[/time]']
><img src="__IMAGE_DIR__/navigation/new.gif" border="0">
>[/if-item-data]
>
>[if base="item-data products" field=creation_date op="=="
>compare="[time]%Y-%m-%d[/time]"]
><img src="__IMAGE_DIR__/navigation/new.gif" border="0">
>[/if]
>
>I have tried using op="==", op="=~", op="eq", op=">=". None
>seem to work.
>
>All I am trying to do is show a little "new" sign next to
>all articles with today's date.
>
>I would appreciate any help. I tired "googling" the icdev
>site for if [time] but nothing to guide me.
>
>Thanks,
>Gurpreet
Hmmm.. base="item-data products" is an odd idea - you realize that the
'base' parameter is for the name of the table in which you are doing the
lookup, correct? 'item-data products' is not a table name.
If you change things around a bit, your evaluation should work:
[if type=scratch term=mytime op=eq compare="[item-field creation_date]"]
<img src="__IMAGE_DIR__/navigation/new.gif" border="0">
[/if]
- Ed L.
===============================================================
New Media E.M.S. Technology Solutions for Business
463 Main St., Suite D eCommerce | Consulting | Hosting
Placerville, CA 95667 edl@newmediaems.com
(530) 622-9421 http://www.newmediaems.com
(866) 519-4680 Toll-Free (530) 622-9426 Fax
===============================================================