-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JavaScript not working in Moodle app #48
Comments
There is a viewcapability attribute and hidecapability attribute. Using this you can hide and show Generico content based on the users permissions. I don't know if this will work in the mobile app or not. But please let me know. For more information look at the section "working with capabilities" on this page: |
Hello everyone, I have set the Generico filter so that it opens an iFrame with a web page in the lightbox after clicking on the link. In the web version it works as desired. Unfortunately not in the mobile version. The entry 'viewcapability=“moodle/course:manageactivities”' does not change anything. |
Hello Justin, I have written to the people at the Moodle app about the Generico filter. I got the following answer:
Would it be possible to customize the Generico filter so that it meets these criteria? |
I am certainly willing to support the mobile app but there are few things ahead in the roadmap (which is only in my head). I am currently rewriting the Poodll filter to use mustache and clear away all the legacy stuff we did with JS back in the old days. Once that is stable and running well, I will bring those changes back to Generico. Mobile is not really a goal of this, but using Mustache in the template will allow us to do more with conditionals and data sets without getting into JS, which is where we really lose mobile support. Having said that iframes in lightboxes is probably a step too far. I am not confident that will work from Generico, and I don't think it will be anytime soon. So you are probably best to look for an alternative |
Thank you for your reply. |
Would you be willing to accept this customization of the plugin as an order? If so, how quickly could you implement this and what would it cost us? You are welcome to send me your answer as a private message. |
I don't have the capacity to take on any custom development work unfortunately. Since it is open source, I am not the only option though. In this particular case I have my doubts about the feasibility of using a lightbox from Generico in the Moodle mobile app. ie I am not sure this will work. Why don't you explain in more detail what you are trying to do. |
I would be happy to explain in more detail what exactly we are planning. |
I see. I am really not sure how to make that work, it seems like something would be possible. Perhaps a standard link to the online bible in those locations would be the simplest way. I wish I could be of more help, but I would need to get in and tinker around before I could say anything useful. And I am not able to do that unfortunately. |
That's perfectly fine! If it doesn’t work out, then so be it. I’m confident we’ll find a solution one way or another. |
Hi there,
I think this is more likely a moodle app security restriction, but I hope there is a way for it. What I am looking for is being able to run a simple conditional based on a value, for example if the person belongs to a team, "T1", I want to hide a link for them only. or some similar cases. This works in browser but Moodle App is not running. I tried conditional CSS even and the same thing.
Would you please advice a way or see if this can be added to the Generico somehow.
Thank you so much for your time developing this awesome plugin.
The text was updated successfully, but these errors were encountered: