Nested <t:list> tags ??

Options

Hey all,

I am trying to throw a dynamic list of elements within another dynamic list of elements. In this case, a calendar grid view:

As is, this correctly displays the grid objects with one event in each. I am able by changing this around to get all events in one day but not 2 lists within each other. A list of each event of a day within a list of each day of the month. Any ideas??

I see that in the "e-card" example there was a list tag nested within another one but I cant seem to reproduce the function. When I try it breaks both lists.

My brain hurts...help me.

Tagged:

Comments

  • Rather than trying to use an inner loop, try tracking the current day (the date of the event you are currently processing) and the previous day (the date of the event you processed just before the current one.) When the current day is different than the previous day, close the currently open DIV and start a new one. Make sure you close the last one when you run out of events.

    That should get all the events on a day in the same DIV.

  • It seems as if nesting a &lt;t:list&gt; tag within itself will only work when the lists are pulling from different data sources, see Bruce's documentation for more info about this:

    http://community.customer.convio.com/docs/DOC-2003

    As for the calendar function:

    We decided to use a javascript library calendar (scal) as a base, then pull the events content type into it, to achieve a GRID calendar populated dynamically with events.

    I will post documentation on how we are achieving this once everything is ironed out.

Categories