2.7 Not show author in Encyclopedia style

2.7 Not show author in Encyclopedia style

by Isabelle Langeveld -
Number of replies: 2

Hi, is there a simple way to take out the author of a glossary entry if I want to use the encyclopedia style? I want to show image and video inline.

Does this require programming?

Average of ratings: -
In reply to Isabelle Langeveld

Re: 2.7 Not show author in Encyclopedia style

by Joseph Rézeau -
Core developersನ ಚಿತ್ರ Particularly helpful Moodlersನ ಚಿತ್ರ Plugin developersನ ಚಿತ್ರ Testersನ ಚಿತ್ರ Translatorsನ ಚಿತ್ರ

Hi Isabelle, this is very easy.

#1.- If it's OK for you to hack your moodle core files, open file yourmoodle/mod/glossary/formats/encyclopedia/encyclopedia_format.php with your favorite text editor and comment out line 27, like this:

//echo '<span class="author">'.get_string('bynameondate', 'forum', $by).'</span>';

#2.- Another solution would be to create a new glossary display format. encyclopediawithoutauthor. This would be quite easy to implement, but would entail adding a new language string in the glossary activity, so the final decision would rest on Moodle HQ.

Joseph