Atto ::: atto_templates
Maintained by Picture of Mark SharpMark 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:
486 sites
38 fans
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.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4


Picture of Mark Sharp
Mark Sharp (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Mark Sharp
    Tue, Sep 19, 2017, 4:36 PM
    When you're doing a table, make sure you have the table plugin on your atto task bar.
    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.
  • Picture of InsightKorea JobS
    Fri, Feb 9, 2018, 6:52 AM
    The following error occurs during installation.
    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
  • Picture of Mark Sharp
    Fri, Feb 9, 2018, 5:11 PM
    Hi Polaris,
    thanks for bringing that to my attention. The test folder was empty, so I removed it and it should now work for you.
  • Picture of InsightKorea JobS
    Mon, Feb 12, 2018, 7:52 AM
    Thanks for the quick fix.
  • Picture of Cheryl Tsai
    Tue, Apr 10, 2018, 5:55 PM
    Hi, I finished the setting of the plugin(create new templates), but there is nothing appearing on the editor. How can I add the template into my text? My moodle version is 3.3
  • Picture of Mark Sharp
    Tue, Apr 10, 2018, 9:12 PM
    Hi Cheryl,
    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
  • Picture of Cheryl Tsai
    Wed, Apr 11, 2018, 10:19 AM
    Hi Mark,
    Thank you so much! I solve the problem! I didn't set the "style1 = title, bold, italic, styles, templates".
    Best wishes
  • Picture of stefan weber
    Thu, May 3, 2018, 9:25 PM
    I like this plugin, but for some reason, it does not take ALL the html that I enter.

    For example, it dropped "!important" and "border-radius" from my style tags

    Is there any reason for this behaviour?
  • Picture of Mark Sharp
    Thu, May 3, 2018, 9:46 PM
    Curious. Not sure why. I'm just using standard insert methods in atto - i.e. I'm not doing any filtering. I've only ever really used in with classes, rather than inline styling. Is that a possibility for you?
  • Picture of Andreas Brandt
    Wed, May 16, 2018, 2:20 PM
    I like the pulgin, too, But I've got a similar problem. I'm using IDs in the html code. But when inseting the template, all IDs are gone.

    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
  • Picture of Mark Sharp
    Thu, May 17, 2018, 11:16 PM
    @stefan and @andreas I've put an update up on my git repo (link above). Would you mind trying that out to see if that fixes anything for you. Also, if you have any example code of what you're trying to insert as a template, please report it as an issue on the github page rather than here. thanks.
  • Picture of Bert van der Hooft
    Sun, Jan 13, 2019, 12:24 AM
    Nice! But it is not working in 3.5. After selecting the template and confirming it, the atto editor is not adding the text. Would be nice if there was an 3.5/3.6 update!
  • Richard
    Thu, May 23, 2019, 5:34 PM
    Is there any news on whether this plugin is working with 3.6? Would be great if it did, it's a very useful add on.
  • Picture of Mike Churchward
    Tue, Mar 3, 2020, 11:03 PM
    This does not install on 3.8, and possibly not on 3.7. The plugins page simply does not see it - no errors - its just not there. I think it may be a core conflict with the name "templates". If I rename the directory to "template" for example, it sees the plugin. It cannot install because the name isn't correct, but it at least sees it.
  • Picture of Mark Sharp
    Wed, Mar 4, 2020, 12:07 AM
    @mike - Can I point you to the github page for a discussion on this? https://github.com/sharpchi/moodle-atto_templates/issues/7
1 2
Please login to post comments