adding "more help" link to question moodle-dialogue

adding "more help" link to question moodle-dialogue

by james aco -
Number of replies: 4

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

Average of ratings: -
In reply to james aco

Re: adding "more help" link to question moodle-dialogue

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

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 smile

Cheers

Mary

In reply to Mary Evans

Re: adding "more help" link to question moodle-dialogue

by james aco -

Thank you Mary for your help,

Please, can you be more specific about where exactly I should add this code in the clean theme

In reply to james aco

Re: adding "more help" link to question moodle-dialogue

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

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

In reply to Mary Evans

Re: adding "more help" link to question moodle-dialogue

by james aco -

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?