Hello, Moodle 3.1
i would like to add the "more help" link that appear in the activities and resources moodle-dialogue to the question moodle-dialogue.
how can i implement this?
Thank you
Hello, Moodle 3.1
i would like to add the "more help" link that appear in the activities and resources moodle-dialogue to the question moodle-dialogue.
how can i implement this?
Thank you
Hi James,
I am not sure about the dialogue box, but I know how to do this in a theme!
<?php echo $OUTPUT->help_icon('thingtoexplain', 'theme_mytheme'); ?>
Where 'thingtoexplain' is added to the lang/en/theme_mytheme.php as a string like so...
$string['thingtoexplain'] = 'Things to expain how something works';
I learnt that from Tim Hunt
Cheers
Mary
Thank you Mary for your help,
Please, can you be more specific about where exactly I should add this code in the clean theme
Hi,
The Message text need to be added to the your moodle/lang/en/question.php file
The link needs to be in one of the files in moodle/question/
I was just saying that the Help icon message can be added to a theme in the way I mentioned.
If you wanted to try it then the you would need to add the text for the message in clean/lang/en/theme_clean.php and the PHP could go into the footer part of layout/columns3.php
Does this make sense?
Mary
I don't think so,
first the layout/columns-1-3 contain this code .
i checked several themes and it seems that the modal dialog are the same style, so i guess it's rendering it from the core,
Does this make sense?