Linda, The render tags look fine.
You may have to convert <%att_FileSize%> before evaluate it -- its probably a string rather than integer by default. Henry Lu On Mon, Mar 9, 2009 at 1:27 PM, [email protected] < [email protected]> wrote: > > We want to display file sizes in kilobytes or megabytes depending on > whether the file size is over 1 MB. This is the code we have so far > but it does not work. > > <reddot:cms> > <if> > <query valuea="<%att_FileSize%>" operator=">=" > valueb="Int:1024"> > <htmltext> > <%att_KbfileSize%> kb > </htmltext> > </query> > <query type="else"> > <htmltext> > <%att_MbfileSize%> mb > </htmltext> > </query> > </if> > </reddot:cms> > > Can anyone give me some idea of how to do this? > > Linda > > Thanks > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/RedDot-CMS-Users?hl=en -~----------~----~----~----~------~----~------~--~---
