Generico Filter icon

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.
Price option: Free

Supports Moodle 2.1-5.2 See all versions
Latest release: 9 months ago
Installations: 2564
Downloads (last 90 days): 558

Frankenstyle name: filter_generico
Filters

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Hi Justin,
As our Moodle site grows, we're becoming increasingly reliant on Generico for some core functionality. It's been going really well.
A couple templates we have rely on returning only one value from a SQL query, however, I'm still having the issue when a value ends in a x.x0 or x.x. Eg, both 1.20 and 1.2 are thought of as the same. So if I have them somewhere in the same column, I'll get an error.
I was getting round it by adding a space after one of the number (for Generico to pass that?) but that doesn't seem to be 100% effective. The column in the database is a varchar (like most of the columns that I need to pull up a number/letter number reference).
Is this something I'm not doing correctly my end? Or is there a way to get Generico to send the trailing 0 to the SQL command?
Cheers again,
Richard
I am sure it has been used in Workplace, but I have not had any communications about that. We are more likely to get notified if it doesn't work, ironically.
Hi Justin,
We've been using Generico for a while now. It's been really helpful in our Moodle Instance, so much so it's a pretty integral part in how our users view and interact with the VLE.
We're looking to move over to Workplace soon, and while the general consensus is "If it works on Moodle 4 it should be fine for Workplace", I didn't know if you could confirm if Generico has been used in any Workplace instances?
Cheers,
Richard
Hi Justin, we are required to add French instructions for our users who insert code templates using the Generico Atto icon. Do I need to add translations in each code template, or is there another centralized area where I can do so?
Thanks again for all of your work on Generico (as well as PoodLL!).
I think this is just a problem when the filter is used to display something on the tile itself, e.g in a label. Is that right?
There is some problem here I think because of the way elements are loaded into the tile. Basically Generico can't see those elements, and so cant act on them. At least thats my recollection. If you can tell us what template you are using, and what error message you are getting that would help. This is not the best place for support though really. The Generico forum thread in the general plugins forum might be better
Hi there smile
I there !
I have some isues when I use the Tiles Format with the Generico Filter.
All of my generico css files are not dowloading on the server.... sad
It's seems that there's a conflit between the "Tiles format" and the "generico filter", and I have no problem with the css of the other format...
I have have JS error
one of you guys had this problem or any ideas of what would be the conflict ??
Thank you very much! I really'll apreciate it!
Hi Repasemos, Though I never did it, I think you can just put your stash tags in the body of the Generico template. And move the Generico filter higher (ie earlier) than Stash in the list of filters under site admin -> plugins -> filters-> manage filters. Then Generico filter will put the stash tags on the page, and Stash will process the stash tags shortly after.
Hi there! First of all, thank you very much for this awesome plugin! I'm building my complete moodle structure using it.
But, I came across one issue: Is there any possibility to use (Stash) shortcodes in within Generico Templates?
[stashdrop secret="yECVEk" text="Pick up!" image]
I've tried -almost- everything, but didn't work, I guess Atto has to render that shortcode, but it's not working inside Generico! Maybe including some js/library inside the template??
I know I can just put them between tag and _endtag but I will have so many courses that that's really life changing... more if at any time on the future I can change it only with changing the Template! Thank you very much! I really will apreciate it!
Hi Justin,
Everything's been going well! Think I may have spotted another bug?
When I have decimal number values that end in a 0, the 0 isn't being passed. For example, 21.10 becomes 21.1. A couple of my templates need to return a single row, so if I have a value of 21.1 and 21.10 somewhere in the same column, I'll get an error.
I'm getting round it by adding a space next to the value in the database, and then adding that space when I use it in the filter (I guess this then turns it into a string as it's being passed?).
Eitherway, just thought I'd let you know.
Cheers again,
Richard
Hi again (again),
All working great this end! Thanks for the super speedy fix!!
Richard
Hi again Justin,
That's great news!
Annoyingly the Moodle site I manage is provided to us by a third party and they handle plugin updates and installs (ugh). I've raised a ticket with them to get it updated and I'll keep you in the loop.
Thanks for the swift response and fix. We're doing some really powerful stuff with this (fantastic) plugin.
Cheers,
Richard
@richard I just released a new version which ought to fix this
Ah that's great thanks. Apologies for sending so many comments! I deleted them once I figured out what was going on, so apologies if your inbox went crazy yesterday!
Hi @richard, yeah it looks like some sort of bug. I will have a look when I can (today tomorrow),and post back here. Thanks for sticking with it
Hi Justin,
Been doing some experimentation and it looks like it's removing everything after (and including) the decimal place. I just did a simpler "SELECT ? as result" and when I input 1.20 I got a result of 1. Doesn't seem to be doing it to any other decimal places that have other characters (eg with a letter first 'D1.5'). I thought maybe it was a data type in the table of the database but it's not that.
Anyway, just letting you know that's an issue I have my end at the moment.
Cheers,
Richard