General developer forum

Custom intro content for activity without changing core moodle files

 
 
Picture of Chris Clark
Custom intro content for activity without changing core moodle files
 

Hey guys & girls,

Does anyone know if it's possible to change the content inside the intro div without changing core moodle code, I can just replace the code inside /mod/modname/view.php but then My stuff is not upgrade safe.

Can anyone shed some light or point me to the correct resources?

Thanks,
Chris

 
Average of ratings: -
Davo
Re: Custom intro content for activity without changing core moodle files
Group DevelopersGroup Particularly helpful Moodlers

Surely, to change the content of the 'intro' div for any given activity, you just click on the 'edit settings' link and type something?

Or is there something other you are trying to achieve?

 
Average of ratings: -
Picture of Jitendra Gaur
Re: Custom intro content for activity without changing core moodle files
 

Best way is to use your custom theme with javascript to replace the content (you can also create theme config setting for dynamic content)

 
Average of ratings: -