I have added support for row templates in tabular views: you can now 
specify the content of each cell on a row much like you specify lens 
templates. An example is the Details tabular view here:

    
http://simile.mit.edu/repository/exhibit/branches/2.0/src/webapp/site/examples/presidents/presidents-2.html

Note that the second column contains both the names of the presidents 
and their photos. But sorting on that column sorts by the names only.

The syntax is as follows

    <div ex:role="view"
       ex:viewClass="Tabular"
       ex:columns=".term, .label, ..."
       ...
       >
       <table>
          <tr>
             <td><span ex:content=".term"></span></td>
             <td>
                <b ex:content=".term"></b><br/>
                <img ex:src-content=".imageURL" />
             </td>
              ...
          </tr>
       </table>
    <div>

(Unfortunately you do need the <table> element there even if it doesn't 
do anything. This is because if <table> is missing, Firefox acts funny.)

David

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to