Skip to content

Commit

Permalink
Update and reformat readme
Browse files Browse the repository at this point in the history
  • Loading branch information
muzzwood committed Mar 26, 2021
1 parent 38a0559 commit 5189872
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 33 deletions.
2 changes: 1 addition & 1 deletion _build/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"lowCaseName": "modtimetable",
"description": "CMP enabled app to create simple weekly timetables for clubs.",
"author": "Murray Wood",
"version": "0.2.0",
"version": "1.0.1-pl",
"package":{
"menus": [{
"text": "modtimetable.menu.modtimetable"
Expand Down
4 changes: 4 additions & 0 deletions core/components/modtimetable/docs/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Changelog for modTimetable.

modTimetable 1.0.1-pl
==================
- Fixed a bug that wouldn't allow description fields to save

modTimetable 0.2.0
==================
- Fixed table rendering bug where certain days were disabled.
Expand Down
14 changes: 6 additions & 8 deletions core/components/modtimetable/docs/readme.txt
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
-------------
Expand Down Expand Up @@ -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]]

56 changes: 32 additions & 24 deletions readme.md
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]]
```

0 comments on commit 5189872

Please sign in to comment.