Hi Mike, There are probably complete examples already out there, but I'll supply a code snippet that we use.
This should give you enough clues as to how to add an icon. Within the Lens of an Exhibit Tile View, I include the following HTML: <span ex:if="date-range(.svcupdate, now(), 'day') < 5"><img src='../ images/updated.gif' alt='updated'/></span> This is fairly self-explanatory but, just to be clear, this: 1. Checks the value of the svcupdate property for each record. 2. Displays an "updated" icon, only if the difference between the svcupdate value and today is less than 5 days, . HTH, -Mark On Aug 12, 3:38 pm, Michael Fitzgerald <[email protected]> wrote: > Can someone point me to Exhibit examples using conditional content? > I'm new to this and the page at <http://simile.mit.edu/wiki/Exhibit/ > Conditional_content> isn't clear or detailed enough for me. Seeing > things in action would help a lot. Or maybe I just need a personal > tutor, if there's someone willing. > > What I would like to do are things like: > > - Add an icon if a date property is within a certain year, maybe > different icons for different years, or maybe just one if that field > is not empty. > - Create a link if a URL is stored, but leave the text unlinked if > there is no URL in the record > > The Getting Started tutorial is so incredibly helpful, it would be > great if some of the other possibilities were written up in that style > for beginners like me. I realize that the MIT wiki is supposed to be > obsolete, but I see nothing on the Google wiki that covers things like > Expressions (which is empty on the MIT site). Are there plans to > update? > > Many thanks for a very useful tool - > > Mike --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SIMILE Widgets" 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/simile-widgets?hl=en -~----------~----~----~----~------~----~------~--~---
