Generico Filter
Maintained by
Justin Hunt
Generico is a simple filter for creating templates of code snippets and text that can be inserted into Moodle text areas.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
.fancybox-close-small, .fancybox-close-small svg {
background: blue;
}
https://moodle.org/mod/forum/discuss.php?d=261896#p1512939
HTML EMBED CODE =
< embed src="https://imgcache.qq.com/tencentvideo_v1/playerv3/TPout.swf?max_age=86400&v=20161117&vid=s0629i76rm6&auto=0" allowFullScreen="true" quality="high" width="480" height="400" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" >< / embed >
IFRAME =
< iframe frameborder="0" width="640" height="498" src="https://v.qq.com/iframe/player.html?vid=s0629i76rm6&tiny=0&auto=0" allowfullscreen >< / iframe >
I'd like to make use of the Youtube Lightbox template in order to embed a video that is hosted on a Chinese platform (some Youtube equivalent). Here is the link to the original video : https://v.qq.com/x/page/s0629i76rm6.html
And here is my own unsuccessful attempt at trying to modify the code for the template body, (am adding a few spaces in there for the code to be displayed as text in my comment) :
< a href="#" data-featherlight="#@@AUTOID@@" >< div class="filter_generico_ytl" >< img src="https://puui.qpic.cn/vpic/0/@@videoid@@_160_90_3.jpg/0" width="@@width@@" height="@@height@@" / >< / div >< / a >< div style="display: none;" >< div id="@@AUTOID@@" >< iframe width="@@videowidth@@" height="@@videoheight@@" src="https://v.qq.com/iframe/player.html?vid=@@videoid@@&tiny=0&auto=0" allowfullscreen >< / iframe >< / div >
Any idea on how to make this work ?
Thanks a million for helping !
Best,
Yannick
Thanks a million for a very quick and efficient answer as I had not added the "generico" word in the Atto toolbar settings !
Best,
Yannick
I have installed both the Generico Atto icon plugin and the filter (which I have activated) but the "G" button won't show in the Atto HTML editor : any idea of what might be missing to make it all work ? (am using Moodle 3.4 - Build: 20171113)
Thanks for helping,
Best,
Yannick
This is a fantasic plugin. It makes it easy to use templates and the changes get reflected in the content pages. I am try to add the "genrico"icon to the atto editor. The error that I get is The plugin 'generico' cannot be used; it does not appear to be installed. I am on Moodle 3.5 and Atto Text editor plugin is installed.
I have updated my moodle instance to 3.4, I was previously using Generico, are there plans to have Generico for moodle 3.4. Thanks.