These are chat archives for locomotivecms/v3

4th
Jan 2016
Dhanabal Thangavel
@dhanabalt
Jan 04 2016 03:46
{% for category in contents.event_categories %}
<div class="col-xs-4 event-calendar-row">
    <div class="event-calendar-row-header">

      <h4 class="text-center">{{ category.title }}</h4>

        <p class="text-center"><a href="#">
      <button class="btn btn-xs btn-default" type="button">View All</button></a><!--Should link to all programs page -->
      <a href="#"><button class="btn btn-xs btn-default" type="button"><i class="fa fa-rss"></i> Subscribe</button></a>
    </p>

    </div>

    <div class="event-calendar-scroll-container">
    {% consume calendar from category.json_url %}

    {% for event in calendar %}
        <div class="event">

          <p class="date">{{ event.start }} - {{ event.end }}</p>
          <h6><a href="{{ event.url }}">{{ event.title }}</a></h6>

        </div>
      {% endfor %}
    {% endconsume %}
    </div>

  </div>
  {% endfor %}
@did
Dhanabal Thangavel
@dhanabalt
Jan 04 2016 05:40
@did is any way we can get start date of a week and end date of a week?
like Ruby Date.today.beginning_of_week
Didier Lafforgue
@did
Jan 04 2016 10:36
hi @dhanabalt, are you around?
Dhanabal Thangavel
@dhanabalt
Jan 04 2016 10:59
yes @did
Didier Lafforgue
@did
Jan 04 2016 11:03
@dhanabalt can you provide me some samples?
regarding your second request, I’m not sure you can achieve that with the current liquid tags/filters.
do you want to use it in a with_scope tag or just to display it?
Dhanabal Thangavel
@dhanabalt
Jan 04 2016 11:07
@did i pinged you privately
Allan Reyes
@allanbreyes
Jan 04 2016 19:47
anyone have any problems where many-to-many relationships were straight up dropped?