Yee-Ting Li wrote:
> Hi,
>
> i have a column/field which i would like to sort by in the tabular  
> view (A). however, it's a little convoluted in it's contents (it's  
> both numeric and alpha). now, i also have another column (X) which  
> basically is a numerical representation (computed from (A)'s contents)  
> of this field.
>
> is it possible to overload exhibit's method of sorting columns, or  
> alternatively to use my 'numerical' representation (B) whilst still  
> showing the value of (A) in the field? if so, how do i do this?
>   
Hi Yee-Ting,

Take a look at the presidents example
    http://simile.mit.edu/exhibit/examples/presidents/presidents-2.html
and click on the Details view. Note that the "name" column actually also 
shows photos. If you sort that column, it's sorted by the names, and the 
photos just go along with the names. This is done by specifying a row 
template in the Tabular view. In the HTML source code, ex:columns 
specifies the expressions by which to sort the columns, while the inner 
<table> ... </table> part specifies how to render the cells in each row.

David

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

Reply via email to