Moodle Plugins directory: Templates | Moodle.org
Templates
Atto ::: atto_templates
Maintained by Mark Sharp
This is an atto plugin for Moodle which allows the administrator to define a set of predefined templates which a teacher can insert into their course pages
Latest release:
52 sites
32 downloads
39 fans
Current versions available: 2
This plugin has been republished with a new name due to a change in Moodle. Please use Templates4U.
This is an atto plugin for Moodle which allows the administrator to define a set of predefined templates which a teacher can insert into their course pages.
It behaves in a very similar way as the TinyMCE templates function (https://www.tinymce.com/docs-3x/reference/plugins/Plugin3x@template/). Rather than storing the templates as stand-alone files, they are stored as settings in Moodle.
Useful links
Contributors
Mark Sharp (Lead maintainer)
Please login to view contributors details and/or to contact them
I'll add an image above to show that in action. In your template, you design your table the with the number of rows and columns you want. The preview just shows what you have created and what will be inserted.
What is the problem?
(moodle ver 3.4)
Debugging output enabled
ZIP /var/www/moodledata/temp/tool_installaddon/928e147a-445c-4ba8-90b8-6efd44b6ff4c/plugin.zip
Validating atto_templates ... error
[error] Unpacked file not found [{"file": "templates \ / tests \ /"}]
Installation aborted due to validation failure
thanks for bringing that to my attention. The test folder was empty, so I removed it and it should now work for you.
Mark
did you add the templates toolbar to atto? Go to http://www.yoursite.com/admin/category.php?category=editoratto and add "templates" to the "Toolbar config".
for example, mine says something like:
style1 = title, bold, italic, styles, templates
Thank you so much! I solve the problem! I didn't set the "style1 = title, bold, italic, styles, templates".
Best wishes
For example, it dropped "!important" and "border-radius" from my style tags
Is there any reason for this behaviour?
Working without IDs isn't possible, cause I'd like to provide the bootstrap 4 collapse classes.
Do you've got a hint, a workaround or a bugfix for me? THX