UPDATE: split each day into its own repeatable region and used buffers to do it, as described in this post: viewtopic.php?f=4&t=9302
---
Hi, I'm trying to use repeatable regions to remake the calendar shown here: http://arielkarass.com/yoga/
(Note: I wrote some crazy CSS that splits the desktop calendar into as many columns as there are days, and I'm trying to preserve that dynamic design)
I have the repeatable fields working in the admin: http://arielkarass.com/yoga-test/
But I need to figure out some logic that says "If classes exist on [day], then create a column, add the day name, and then loop through all the classes"
Is this even possible? THANKS
---
Hi, I'm trying to use repeatable regions to remake the calendar shown here: http://arielkarass.com/yoga/
(Note: I wrote some crazy CSS that splits the desktop calendar into as many columns as there are days, and I'm trying to preserve that dynamic design)
I have the repeatable fields working in the admin: http://arielkarass.com/yoga-test/
- Code: Select all
<cms:show_repeatable 'classes'>
<div class="column">
<ul class="day">
<li class="day-name"><cms:show day /></li>
<li class="instance">
<time><cms:show start_time />–<cms:show end_time /></time>
<strong><cms:show studio_name /></strong>
<cms:if "<cms:not_empty class_link />" ><a href='<cms:show class_link />'></cms:if>
<cms:show class_title />
<cms:if "<cms:not_empty class_link />" ></a></cms:if>
</li>
</ul>
</div>
</cms:show_repeatable>
But I need to figure out some logic that says "If classes exist on [day], then create a column, add the day name, and then loop through all the classes"
Is this even possible? THANKS