modTimetable 0.2.0-alpha

modTimetable 0.2.0-alpha

Released Nov 08, 2017 by muzzstick
A user-friendly Custom Manager Page for inputting weekly timetable data with options on how to display it on the web context.

Render it in a HTML grid or straight to divs.

Download 84kb (22 downloads)
Downloads: 52
License: GPLv2
Requires Revolution 2.3.x or greater
Supports mysql

For MODX Revolution 2.3+Requires PHP 5.5+Currently in Alpha. Use at own risk.

A user-friendly Custom Manager Page for inputting weekly timetable data with options on how to display it on the web context.

Render it in a HTML tables or straight to divs.

Installation Instructions

Example Snippet calls

-------------

To show timetables with IDs 1 and 2 in a table:

[[!modTimetable? &timetables=`1,2` &renderTable=`1`]]

or to include custom chunks:

[[!modTimetable?    &timetables=`1,2`    &renderTable=`1`    &tableHeaderRowTpl=`myHeaderRowChunk`    &timetableTpl=`myMainTimetableChunk`    &sessionTpl=`mySessionChunk`]]

To display sessions for a single day from multiple timetables:(This depends on what you set the day name as in the CMP.)

[[!modTimetable?    &timetables=`1,2`    &day=`Tuesday`]]

To display a single day from multiple timetables relative to the current day:(This will display the next "active" day that contains sessions.)

[[!modTimetable?    &timetables=`1,2`    &day=`auto`]]

Changelog for modTimetable.

modTimetable 0.2.0

==================

- Fixed table rendering bug where certain days were disabled.

- Added mtNextDayName snippet to return the next day name that has sessions.

modTimetable 0.1.2

==============

Still pre-release but many bugs fixed

modTimetable 0.0.1

==============

- Initial release.

Version Released Author Downloads
3 Versions 1 Contributors 52 Downloads
0.1.2-alpha Oct, 31 2017 muzzstick 16
0.1.1-alpha Oct, 24 2017 muzzstick 14