Perfect. Thanks again!
On Apr 14, 6:25 am, David Huynh <[email protected]> wrote:
> Crabstix wrote:
> > Hi,
>
> > I've got this page set up to show gig details:
>
> >http://www.joecrabtree.com/test/tour_stuff/WishboneAshTours.php
>
> > I have each gig as an item with the label: date(venue name)
>
> > This combination is unique and looks appropriate to display on the
> > timeline and map view.
>
> > On the details view I have separate columns for date and venue name.
> > I'd like to be able to click on a venue name and have it bring up the
> > details for the specific gig. Is this possible?
>
> > To be more precise - if I were to display .label in the venue column
> > I'd see the date(venue name) and clicking it would bring up the
> > details for that item. I'd like to have control over what's displayed
> > - so maybe in the table clicking the date would bring up the item.
>
> > I guess I need something along the lines of an <a> tag : <a lens-
> > popup-from=".label"><span ex:content=".venue"/></a>
>
> > Can I do this?
>
> If I understand you correctly, I'd try something like this
>
> <div ex:role="view"
> ex:itemTypes="Upcoming Gig,Past Gig,You"
> ex:viewClass="Tabular"
> ex:rowStyler="zebraStyler"
> ex:showToolbox='true'
> ex:label="Details"
> ex:columns=".residency.inDate, .tourname.label, .city,
> .country, .milesfromyou, .intime"
> ex:columnLabels="Date, Tour, Venue, City,Country,Distance
> from You,Days to go"
> ex:formats="date { mode: medium; show: date }"
> ex:sortColumn=0
> ex:sortAscending="true"
> >
> <table style="display: none;">
> <tr>
> <td><span ex:content=".residency.inDate"></span></td>
> <td><span ex:content=".tourname"></span></td>
> <td><span ex:content=".name"></span></td>
> <td><span ex:content="value" ex:formats="item { title:
> expression(.city) }"></span></td>
> <td><span ex:content=".country"></span></td>
> <td><span ex:content=".milesfromyou"></span></td>
> <td><span ex:content=".intime"></span></td>
> </tr>
> </table>
>
> <div ex:role="lens" ex:itemTypes="Gig">
> // whatever you want here
> </div>
> </div>
>
> The idea is that for the venue column, you tell Exhibit to render the
> gig (which Exhibit renders as a link that will show a popup), but to
> make the title of the link equal to the city property (or whatever else
> you want). The lens template inside the tabular view specifies how to
> render gigs in popups.
>
> David
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---