Hello together,
I'm used to work with Moodle1.9 but in Moodle2.x it's different.
I try to get the picture from questions questiontext.
I want to develop a block which uses this pictures.
In the Version 1.9 I extrakted the path and thats it.
In Version 2.3 there is a path like:
I don't now how can i get the file oder filepath out of this path.
The path is used by Quiz like that: www.mymoodle123.com/pluginfile.php?file=/453/question/questiontext/98/1/815/LFILFI.png
I understand:
- 453: is contextid
- question: links to table question
- questiontext links to column
but I can agree with the other params.
Can someone tell me where I finde the other params?
Or it there a better way, to get the picture?