Text editors

HTML Snippets Plugin

 
Picture of Neil Stapleton
Re: HTML Snippets Plugin
 

Hi Justin

Great plugin by-the-way, and thank you so much for all the hard work.

Just a general question, about the likely hood of you finding the time to update compatibility to 3.5 following it's release in few weeks. I know you've mentioned some improvements such as switching to a dropdown list instead of a popup and buttons (which I have mixed feelings about, see below). It would be great to see a few improve an for 3.5 comparability to be assured as it's the later LTS release, not sure I can do much to help other than send encouragement and perhaps a bit of info.

I'm in the process of implementing this plugin for our course builders, as a template toolkit.  One of the challenges I have is targeting it at staff without making it something that Students are going to start fiddling with, because it's purpose is unclear.

My initial thought was to customise the atto_snippet > 'chooseinsert' language string to add some guidance and perhaps a link to some more guidnance on how to get the best out of our templates.  It's a shame this string doesn't support html, so it could be styled and include a link.


So in short, I really like the popup as it could potentially allow me to include some descriptive text, so that users (especially students) know what it's for. I'm not a fan of the 'spider web' icon, not sure if there's a way to allow this to be customised via the config or a language string perhaps?

So if you do move to a drop-down it might be a limitation in my mind.... perhaps you could give it as an option and also make the atto_snippet > 'chooseinsert' string support html, to keep everyone happy smile



 
Average of ratings: -
Picture of Neil Stapleton
Re: HTML Snippets Plugin
 

Should have said that I'm currently testing it on a 3.4 Moodle, with Boost and all seems to be working well.

Happy to add trackers if helpful

 
Average of ratings: -
Picture of Justin Hunt
Re: HTML Snippets Plugin
Particularly helpful MoodlersPlugin developers

Hi Neil

Thanks for taking the time to share your thoughts. And its great that you are using it with your team.

Yes I plan to bring (almost) all the plugins up to 3.5 with support for the new privacy API. About the popup. Well the sticking point is that having thought about it a bit, the best situation is not buttons or pulldowns as much as an attractive chooser with more guidance for the user than now,  much like the wordpress shortcodes often have.

Each template should have a panel with its name, icon, and a description. The user should be able to scroll through a list of them before choosing. And on the next page, the  fields where users specify variable values should be laid out better with label  + description/instruction.

If you can find a better icon, just send it to me. Generico atto plugin allows you to choose the icon, so its actually possible to do that too. I wonder which is the better way ...

About confusing students ... Snippet has a capability declared 'atto/snippet:visible.' So you could just remove that capability from the student role. Then they won't see the icon and won't know what they are missing. Perhaps that helps?


 
Average of ratings: -
Picture of Neil Stapleton
Re: HTML Snippets Plugin
 

Hi Justin

Thanks for the quick response and sorry for the delay in coming back to you. Great news that you are planning to 3.5 this and your other great plugins. Your concept for the chooser sounds ideal and tidying up the variable form would be the icing on the cake.

Icon wise, having a choice like 'atto_generico' would be perfect, as we could then align it to our internal brand.  I did have a quick look at some font awesome and something like might also work well.

I'm a little embarrassed I didn't' spot the 'atto/snippet:visible' capability, which is perfect.

My interaction with you and what the direction you are taking this has really strengthened my view that this will allow us to create a whole suite of templates for our course builders, and that it will be an important tool for us.

Thanks again for all the hard work.

Best

Neil

 
Average of ratings: -