-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
43 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
--------------------------------------- | ||
modTimetable | ||
--------------------------------------- | ||
Version: 0.1.2 | ||
Version: 1.0.1-pl | ||
Author: Murray Wood <[email protected]> | ||
--------------------------------------- | ||
|
||
For MODX Revolution 2.3+ | ||
For MODX Revolution 2.6.5+ | ||
|
||
Requires PHP 7.1+ | ||
|
||
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 grid or straight to divs. Custom chunks available soon. | ||
Render it in a HTML grid or straight to divs. | ||
|
||
Example Snippet calls | ||
------------- | ||
|
@@ -45,8 +45,6 @@ To display a single day from multiple timetables relative to the current day: | |
&day=`auto` | ||
]] | ||
|
||
NEW | ||
|
||
A new snippet that returns the next day name that has active sessions: | ||
A snippet that returns the next day name that has active sessions: | ||
[[!mtNextDayName]] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,53 @@ | ||
modTimetable | ||
= | ||
For MODX Revolution 2.3+ | ||
#modTimetable | ||
|
||
Requires PHP 5.5+ | ||
For MODX Revolution 2.6.5+ | ||
|
||
Currently in Alpha. Use at own risk. | ||
Requires PHP 7.1+ | ||
|
||
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. Custom chunks available soon. | ||
|
||
Example Snippet calls | ||
------------- | ||
#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\` | ||
&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\` | ||
&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\` | ||
&timetables=`1,2` | ||
&day=`auto` | ||
]] | ||
``` | ||
|
||
|
||
NEW | ||
-- | ||
A new snippet that returns the next day name that has active sessions: | ||
[[!mtNextDayName]] | ||
A snippet that returns the next day name that has active sessions: | ||
``` | ||
[[!mtNextDayName]] | ||
``` |