http://fsc.no/timeplan_rommen_197.html,
This is a fitness club time table.
When you click a cell, a modal comes out to show more details. It shows week by week schedule and also it filters different type of activity from a dropdown.
Does Matrix and Playa suit for this kind of application? Do I need both?
Thanks in advance.
-
I would make this using seven identical Matrix fields (one for each day). Each of those fields would get the following columns:
- Time
- Description
- Available
- Instructor
- Photo
- Description
So each event gets a row in one of those Matrix fields.
I'd make the Instructor column a Playa field (using the "select" UI mode) relating to an "Instructors" channel so you don't have to fill out the instructors’ photos and descriptions any more than once per instructor. -
-
Thanks Brandon.
BTW, I am looking for a booking system for the same project. Do you have any idea?
I need it for a fitness club booking system which a member can book from your schedule by clicking "Book".
A class can have 20 - 25 and I need to show how many are taken, such as 14/25. And also logged in member can book it there and then the number of course increase one to 15/25 etc.
If a class is full then it should give a warning.
If you knows any resources about booking, please let me know.-
Sorry, not sure about the booking stuff. You might have to write your own module for that.
-
-
-
-
-
Another question regarding Playa and Matrix.
The website, http://fsc.no/timeplan_rommen_197.html has a filter for instructor. When you select a instructor on the left dropdown, only his/her class will be displayed.
Now if each class is stored in a DB, I can display all the class of the instructor.
Can Playa and Matrix do this with your structure described above?
Thanks in advance. -
-
Yes. You'd just move the schedule to its own template, so that it can be loaded via Ajax, and give each of the Matrix tags a dynamic_parameters="search:instructor" param.
Then name your Instructor dropdown "search:instructor" and make sure that its value is sent to the ajax template via POST. -
Loading Profile...


Twitter,
Facebook, or email.

EMPLOYEE
