Forum

Course full name in Email subject

 
Wazza
Course full name in Email subject
Particularly helpful Moodlers

I think I have done this once, get the course full name in the Email subject in stead of the course short name.

However, I can't seem to find the right variable. In the language file, under forum, you can find this: 

{$a->courseshortname}: {$a->subject}

However, changing $a->courseshortname into $a->coursefulllname or $a>coursename does not seem to work. 

What is the correct variable to do this?

 
Average of ratings: -
Picture of Helen Foster
Re: Course full name in Email subject
Core developersDocumentation writersMoodle HQParticularly helpful MoodlersPlugin developersTestersTranslators

Hi Richard,

I found the tracker issue 'Make subject line of forum notifications a configurable language string' - MDL-44505 - which mentions the placeholders

{$a->courseshortname}
{$a->forumname}
{$a->subject}

and the possibility of adding more, though nothing about course full name. Thus, unfortunately it seems it is not currently possible.

 
Average of ratings: Useful (1)
Wazza
Re: Course full name in Email subject
Particularly helpful Moodlers

I do remember it editing though, must be in core code then.

I will look a bit further. It's not a big issue, but since we switched to codes in the shortname of a course (so that it can be identified by other systems) we do not like showing the shortname to our users. It's ugly smile

 
Average of ratings: -
Picture of AL Rachels
Re: Course full name in Email subject
Core developersParticularly helpful MoodlersPlugin developersTesters

Hi Richard,

No guarantee that they will work, but if you:

  • go to Language customisation
  • select everything in the box for, Show strings of these components
  • then enter, $a->course, in the, Only strings containing, box
  • and then finally click on Show strings,
You should get these different possibilities to try.

{$a->course_name}
{$a->course}
{$a->coursename}
 
Average of ratings: Useful (1)
Wazza
Re: Course full name in Email subject
Particularly helpful Moodlers

Tried them all, but none worked.

Thanks for this great trick though, I might use it a couple of times myself now!

 
Average of ratings: -