You are viewing the PKP Support Forum | PKP Home Wiki

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
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

Email template

Postby marcob » Fri Oct 09, 2009 4:30 am

I have a simple question. I need the info about the Track to be included in the email templates. This is
important because the Director needs to inform the author about which track s/he has been (re)assigned to.

I took a guess and given that {$paperTitle} and {$paperAbstract} exist I tried to use
{$paperTrack} but that did not work.

So my query is whether a variable Track exists.

I was surprised that I could not find a list of available variables anywhere in the documentation.
I think I tried looking anywhere before posting. What I would like is a simple table that then people
can use as they want in the templates. If it does not exist could this table be provided somewhere?
(e.g. appendix to OCS in one hour)

Thanks, MarcoB
Posts: 15
Joined: Fri Jun 27, 2008 2:50 am

Re: Email template

Postby mcrider » Tue Oct 13, 2009 3:48 pm

Hi MarcoB,

This type of question has been asked before, but any type of list would be unwieldy and would change frequently, even with just email templates. Still, its a possibility that we might write one up in the future--I'll bring it up with others on the support team.

One way to get at these template variables would be to grep your OCS installation for 'mail->assignParams', which will show all parameters assigned directly to email objects. Other global variables are assigned in the classes/template/TemplateManager.inc.php constructor function--These are variables accessible in any template or email file.

For the track name, try using the variable 'trackName', which is used in certain email templates.

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

Re: Email template

Postby marcob » Wed Oct 14, 2009 12:45 am

Dear Matt,

Thank you for your help. The variable trackName worked for me so I'm using it now to notify authors
of which track they have been assigned.

About keeping a table with these variables, when you say that the list would change frequently this
seems to be a good reason to have a list! It is exactly when things change that it's important to have
a masterlist to keep track of them. Just my humble opinion of course.


Posts: 15
Joined: Fri Jun 27, 2008 2:50 am

Re: Email template

Postby jmacgreg » Tue Oct 20, 2009 2:01 pm

Hi all,

I reported this as a feature request a while ago: http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=4564. Marco, please feel free to CC yourself to that for future updates.

Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Re: Email template

Postby billysundar » Sun Jan 10, 2010 6:53 pm

is there a variable for the presentation start and end time?
Posts: 17
Joined: Wed Aug 19, 2009 7:53 pm

Return to OCS Technical Support

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Yahoo [Bot] and 2 guests