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:
41 sites
18 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.


Screenshots

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

Contributors

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

Comments RSS

Show comments
  • Mark Sharp
    Tue, 19 Sept 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.
  • InsightKorea JobS
    Fri, 9 Feb 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
  • Mark Sharp
    Fri, 9 Feb 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.
    Mark
  • InsightKorea JobS
    Mon, 12 Feb 2018, 7:52 AM
    Thanks for the quick fix.
  • Cheryl Tsai
    Tue, 10 Apr 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
  • Mark Sharp
    Tue, 10 Apr 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
  • Cheryl Tsai
    Wed, 11 Apr 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
  • stefan weber
    Thu, 3 May 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?
  • Mark Sharp
    Thu, 3 May 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?
  • Andreas Brandt
    Wed, 16 May 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
  • Mark Sharp
    Thu, 17 May 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.
  • Bert van der Hooft
    Sun, 13 Jan 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, 23 May 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.
  • Mike Churchward
    Tue, 3 Mar 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.
  • Mark Sharp
    Wed, 4 Mar 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