Allow variable names to be used to point to images
Hi,
I would really enjoy having the option to use the teacher's name in a variable - this way, I could choose default values in my template file and they would automatically change to the name of the teacher when applied in a course. {teacher}-signature.jpg and {teacher}-mugshot.jpg would be my 2 favorite variable images to use. I could also imagine a different image depending on the course category...
Thanks for the great efforts already!
Hi Jurgen,
I can see this being very useful, especially in the scenario you mentioned. I just need to think of a good way of implementing this.
Where are these images stored? Just by simply passing a direct URL (eg. http://yourtosite.com/{teacher}-signature.jpg) or are they stored in the Moodle filesystem?
Hi Mark, it's actually an idea I picked from Chamilo, where they allow you to use variable names in your HTML source code. I just used it that way back there. I haven't really thought about where those signatures would be stored - I just assumed a direct URL on the site, but indeed, the Moodle system is so much more potent. Either would work for me, just being able to do it would be great! Another approach would be to have the institution (one of my custom fields) logo appearing on the PDF. Again just a fixed URL, but now pointing to a different field name...
Two things I think can be done here -
Extend the functionality of the image element so that you can specify a URL, or a user profile field containing the URL.
Is there any movement on this functionality ?