Best practice forum (Archived)

List of Variables for Substitution

 
Ira Felinski
List of Variables for Substitution
by Ira Felinski - Tuesday, 26 March 2013, 4:17 PM
 

Hi,

I noticed that there isn't much help documentation around variables for substitution for messages in Totara LMS. eg. %programfullname%, %fullname%, etc

Can someone provide a list of the variables that can be substituted and in which messages they will work?

Thanks,

-Ira

Austen Sinclair
Re: List of Variables for Substitution
by Austen Sinclair - Tuesday, 26 March 2013, 4:51 PM
Group PartnersGroup TXP Site Administrator

Hi Ira

This is the list we use - hope its of value.

Cheers

Austen

Plans (lang string componentupdatelong*, local_plan)
$a->plan displays link to staff member's IDP home page - opens to Overview tab. (HTML) 
$a->planid Plan ID (integer)
$a->planname Plan title (string)
$a->wwwroot LearnIR url (string URL)
$a->componentsingular Plan item type e.g. competency (string)
$a->component As above, plural (string)
$a->componenturl URL to appropriate tab in plan (string URL)
$a->userfrom Fullname of user who did the action (string)
$a->userfromid ID of user who did the action (integer)
$a->user URL of recipients profile (string URL)
Lang string alerts_compheader, local_plan
$a->compname Compentency name (string)
$a->compid Compentency ID (integer)
$a->componenturl See prev section
Lang string alerts_courseheader, local_plan
$a->coursename Course name (string)
$a->courseid Course ID (integer)
$a->componenturl See prev section
Lang Completion
$a->course
$a->courseid
Face-to-face mod
[facetofacename]
[firstname]
[lastname]
[cost]
[duration]
[session:date]
[alldates]
[session:location]
[session:Building]
[session:room]
[coursepageurl]
[details]
Ira Felinski
Re: List of Variables for Substitution
by Ira Felinski - Sunday, 21 April 2013, 10:39 PM
 

Anyone know if user specific details can be substituted the same way in system messages?

eg. %username%, %password%, etc

 

James Igoe
Re: List of Variables for Substitution
by James Igoe - Monday, 22 April 2013, 6:47 AM
 

Hi Ira

Unfortunately you're stuck with only two options for program messages - %programfullname% or %setlabel%. I think everyone would like more options to go in these messages, and there seems to be a move towards this happening.

There's more information in these two posts:

James