Moodle plugins directory: Tiles format | Moodle.org
Tiles format
Course formats ::: format_tiles
Maintained by David Watson
A course format which displays course topics as "Tiles", in a grid rather than as a list. When clicked, tile content is displayed under the tile with an animated transition. The layout adapts to different screen sizes and orientations. Within each tile, activities can also be set to display as "sub-tiles". For each tile, the teacher can pick an icon from a predefined set, or upload a background photo.
Latest release:
16793 sites
7k downloads
414 fans
Current versions available: 7
Key features
- Tiles are used to show course topics and activities
- Animation is used to expand tiles to reveal content
- Icons or photos on each tile increase visual appeal
- Modal windows (animated pop ups) to show content
- Colours for tiles are customisable
- Theme compatibility is broad (Boost, Clean, Essential, Moove and Adaptable).
- Easy to switch into Tiles from other formats (e.g. Topics, Grid) without changing course content
- User friendly (e.g. tile icons are provided and don't need to be uploaded)
- Mobile responsive (adapts to different screen sizes and orientations)
- Progress shown on tile with % in a circle, or as a fraction
Contributors
David Watson (Lead maintainer)
Please login to view contributors details and/or to contact them
The "Beta" designation is to indicate that further testing is required, so I intend to allow 3 weeks from today for any bugs to be identified. If no significant known bugs remain by 23 February 2024, I plan to upgrade this to a "release candidate" on that date, with a view to upgrading it to "stable" by 15 March 2024.
The release includes a change to the way that tile photos and icons are stored in the database, so during your own testing, please check that your Tile photos and icons are retained and report it if not.
I added more details at the top of the page about what's included, and the next updates for the Moodle 4.1 and 4.2 versions.
I would like to "recreate" a function in tile format, but I can't do it.
It is the case that clicking on a "text page" activity results that it is displayed in a modal dialog.
Because we want to make several activities compactly accessible, we want to link to the text pages in a text field. However, a link from the text field means that the text page is not displayed as a modal dialog but takes up the entire browser window page. This is good for pages with a lot of content, but unnecessary for pages with little content.
Therefore, I wanted to try to imitate the behavior of displaying a modal dialog. But I can't find the reason why there is this difference in the behavior?
The link address in the activity is the same as in the text link. I noticed an event onclick="". But it also does not cause the page to be displayed in the modal dialog via the text link.
Can you enlighten me
Many thanks, Birgit from Germany
When the latest version of the format "Titles" or mosaics I get this error that prevents me from editing any resource in the course.
Excepción - Class "format_tiles\output\courseformat\content\cm\controlmenu" not found
If I choose another format the error disappears and I can edit the course.
How can I fix it? Thank you very much
xcepción - Class "format_tiles\output\courseformat\content\cm\controlmenu" not found
How can it be fixed.
@Queenie sub-tiles were only shown to editors until Moodle 3.11. To save effort on the upgrade, they only appear to students from Moodle 4.0. They will be shown to editors again in a later release but it was a lower priority than getting other things working
@Ben thanks for the comment and I'm glad it helped!
@Birgit unfortunately the code does not cover that use case at present
It would be great if you could update format.php to use methods from the renderer instead of
using render_from_template() directly. This would allow us to override the renderables in the theme.
For example:
public function render_multi_section_page($course) {
$templateable = new \format_tiles\output\course_output($course, false, null, $this);
$data = $templateable->export_for_template($this);
return $this->render_from_template('format_tiles/multi_section_page', $data);
}
public function single_section_page($course, $displaysection) {
global $SESSION;
$SESSION->editing_last_edited_section = $course->id . "-" . $displaysection;
$templateable = new \format_tiles\output\course_output($course, false, $displaysection, $this);
$data = $templateable->export_for_template($this);
return $this->render_from_template('format_tiles/single_section_page', $data);
}
Thanks!
I used your plugin in a 4.5dev Moodle with PHP 8.2.13 installed. Due to the fact that I have enabled warnings, I got a few errors that I had to fix before using the plugin. I also created a pull request for these changes for your master branch.
Best regards, Stephan
When using the experimental feature in Moodle 4.4+ nothing on the left Course index is showing.
Use course index format_tiles | usecourseindex
Using Boost Union and LearnR template.
Thanks for this wonderful layout.
When I want to register the plugin, I also get an error. Your tiles plugin is not yet registered with the plugin developer:
Exception - Too few arguments to function format_tiles\registration_manager::make_curl_request(), 2 passed in [dirroot]/course/format/tiles/editor/register.php on line 68 and exactly 3 expected
The Experimental feature is now working and showing the index in the left column.
Unfortunately, filters only seem to work when a tile is loaded the first time, but do not seem to be applied when the tile is clicked for a second time. Filters are also not applied to Pages that are opened (in pop-up mode). Did you call the format_text() function on these?
Thanks again.