Adding custom variable to email template

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
billysundar
Posts: 17
Joined: Wed Aug 19, 2009 7:53 pm

Adding custom variable to email template

Postby billysundar » Mon Jan 11, 2010 5:14 pm

We are using OCS and would like to modify the presentation accepted email to include the start and end time slot for the accepted presentation.
Are there any variables? If not, can some one point me as to the type of customization that I can do/code snippets.

Cheers
Billy. :)

mcrider
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC

Re: Adding custom variable to email template

Postby mcrider » Fri Jan 15, 2010 4:49 pm

Hi Billy,

This template is created in the emailDirectorDecisionComment function in classes/submission/trackDirector/TrackDirectorAction.inc.php. In there you can assign new variables to the PaperMailTemplate and reference them by editing the SUBMISSION_PAPER_ACCEPT template to include them. There are some other posts on the forum that provide more details on adding new variables to email templates.

Cheers,
Matt

billysundar
Posts: 17
Joined: Wed Aug 19, 2009 7:53 pm

Re: Adding custom variable to email template

Postby billysundar » Sun Jan 24, 2010 12:09 pm

thanks a bunch. i will try and let you know.

billysundar
Posts: 17
Joined: Wed Aug 19, 2009 7:53 pm

Re: Adding custom variable to email template

Postby billysundar » Sun Jan 24, 2010 1:38 pm

I am totally new to this.. Where do I look to see if the start and endtime from the paper table is already available? (i.e, either a function/method).

mcrider
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC

Re: Adding custom variable to email template

Postby mcrider » Mon Jan 25, 2010 11:12 am

Hi Billy,

All of the parameters available to the email are assigned in the function I said in my last post--Look for the $email->assignParams() call.

Cheers,
Matt


Return to “OCS Technical Support”

Who is online

Users browsing this forum: No registered users and 1 guest