Location of help files for new assignment types

Location of help files for new assignment types

by Roberto Aloi -
Number of replies: 2
Hi all,

I'm working on a new assignment type. Where should I place my "help" files?

I tried to put them into:

/mod/assignment/type/myassignment/lang/en_utf8/help/

and I'm trying to add a button with:

$mform->setHelpButton('MYELEMENT', array('MYPAGENAME', 'My Title', 'assignment_MYASSIGNMENT'));

but it didn't work.

I'm using Moodle 1.9.7.

Thanks,

Roberto Aloi
http://aloiroberto.wordpress.com


Average of ratings: -
In reply to Roberto Aloi

Re: Location of help files for new assignment types

by Michael de Raadt -
Hi Roberto,

I am in the process of completing an assignment type also, so your question prompted me to discover the answer as I would need to do this eventually. I ended up putting my help files in...

/mod/assignment/type/myassignmenttype/lang/en_utf8/help/assignment/type/myassignmenttype/

To add a help button I used...

helpbutton('helpfilenamewithoutextension', get_string('langfilevalue','assignment_myassignmenttype'), 'assignment/type/myassignmenttype')

...or you could use setHelpButton() in a form with the same arguments.


Michael;
Average of ratings: Useful (1)
In reply to Michael de Raadt

Re: Location of help files for new assignment types

by Roberto Aloi -
Yeah, it works. Thanks...

It's just insane that you need to specify the dir full structure again in your assignment dir :S