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.
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
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
Thanks again for all of your work on Generico (as well as PoodLL!).
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
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....
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!
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!
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
All working great this end! Thanks for the super speedy fix!!
Richard
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
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