On 2/5/07, David Huynh <[EMAIL PROTECTED]> wrote: > To control what goes into that bubble, define a "lens template". Please > refer to this section for an example > http://simile.mit.edu/wiki/Exhibit/Getting_Started_Tutorial#Lenses > You can also check out lens templates in our various examples, e.g., > http://simile.mit.edu/exhibit/examples/cereals/cereal-characters.html
http://ecmanaut.googlepages.com/choir-events.html#basic also has decent examples of lens templates catering multiple types of data (if however in an unholy mix of Swedish and English). At least presently, I think the best way of catering for that is to split them up a bit like this (a cleaned-up version of the code behind that page): <div ex:role="exhibit-lens" class="item"> <div ex:select=".type"> <div ex:case="Event"> <div class="when"> <span ex:content=".weekday"></span> <span ex:content=".time"></span> <span ex:if-exists=".ends"> to <span ex:content=".ends"></span> </span> </div> <span ex:content=".label"></span>, <span ex:content=".location"></span> <span ex:if-exists=".location.city">, <span ex:content=".location.city"></span> </span> </div> <div ex:case="Location"> <strong ex:content=".label"></strong>, <span ex:content=".city"></span> <div ex:if-exists=".url"><b>Home page</b>: <a ex:href-content=".url" ex:content=".url" style="font-size:80%"></a> </div> <div ex:if-exists=".address"><b>Address</b>: <span ex:content=".address"></span> </div> <div ex:if-exists=".phone"><b>Phone</b>: <span ex:content=".phone"></span> </div> </div> <div ex:case="City"> <strong ex:content=".label"></strong> (<span ex:content=".country"></span>) ... <div ex:content=".description"></div> </div> </div> </div> -- / Johan Sundström, http://ecmanaut.blogspot.com/ _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
