General developer forum

 
 
Picture of Michal Novák
@@PLUGINFILE@@ to link
 

Hi, im developing new module to export content to PDF file.

I have a problem with files inserted in lesson pages.

In database i have <img src="https://moodle.org/pluginfile.php/114/mod_forum/post/1005193/Koala.jpg" > and don´t know how to transform it to  <img src="pluginfile.php....." >

Please help me or some advice.

 
Average of ratings: -
Picture of Michal Novák
Re: @@PLUGINFILE@@ to link
 

correction : <img src="@@pluginfile@@/koala.jpg">

 
Average of ratings: -
Davo
Re: @@PLUGINFILE@@ to link
 
Average of ratings: -
Picture of Michal Novák
Re: @@PLUGINFILE@@ to link
 

Thank you it was very helpfull, but i have one more question. How to get $context->id and $itemid?

I searched for er-diagriam, but very difficult be experienced.

 
Average of ratings: -