All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Linear Calendar

Rick 12 Oct 2012 22:09 question, complete

Hi, I'm trying to work out if there is a way to use Low Events to create a 'linear' calendar, ie. where the days of the months are shown strung-out into a single timeline, running left to right. So far I've not been able to accomplish it, neither using the calendar tag nor the entries tag. All the Calendar variables seem to be designed purely for creating a tabular calendar.
Is what I'm trying to achieve possible?

Thanks;
Rick

Replies

  1. Low 12 Oct 2012 22:18

    Not entirely sure what your desired output would look like, but stripping the html-tags out of the Calendar example might help:

    {exp:low_events:calendar date="{segment_2}"} 
    <p>
    {this_month format="%F"}
    {weeks}
    {days}
    {if is_current}| {day_number}{/if}
    {/days}
    {/weeks}
    </p>
    {/exp:low_events:calendar}

  2. Rick 13 Oct 2012 11:48

    Hi Low, thanks for the reply. Yours is a simpler version of what I managed to get working (in a rudimentary way) in a table-structured manner, using:

     
    {exp:low_events:calendar channel="events" date="{this_month_url}" dynamic="no"}
    <table>
    <tr>
    {weekdays}
    <th>{weekday_1}</th>
    {/weekdays}
    {weekdays}
    <th>{weekday_1}</th>
    {/weekdays}
    {weekdays}
    <th>{weekday_1}</th>
    {/weekdays}
    {weekdays}
    <th>{weekday_1}</th>
    {/weekdays}
    {weekdays}
    <th>{weekday_1}</th>
    {/weekdays}
    </tr>
    <tr>
    {weeks}
    {days}
    <td>{day_number}</td>
    {/days}
    {/weeks}
    </tr>
    </table>
    {/exp:low_events:calendar}


    After a bit of playing around, however, I think I might abandon the linear calendar, at least in this instance; it raises too many other design problems. So I've reverted to the regular tabular calendar style. I do have a follow-up question, but I should really start a new thread for that. Cheers.