how can I get the real address from file path like this '@@pulgin....'
I try the function file rewrite plugin file urls..it does not work
Please explain the context a little more:
I know I can use the function moodle_url::make_pluginfile_url() to construct this URL directl.
but how can get the paramter referred in the function and related to the image I want to show.
think you
If this is the 'intro' text for your activity module, then use the function format_module_intro and that will take care of it for you.
If this is a different field, then you need to use the same params you used when you called file_postupdate_standard_editor to save the files in the first place - namely:
thank for you reply
as for the second way user submit the image in the assign mod well I want to show in another mod so how can get the params .as if I only use function in my mod dose that mean I can define a constant instand of component,contextid,filearea?
what the relatation between the corsemodule and context(or contextid)?
what about itemid?
my best wishes
suhang