List of possible variable in prepared email ?

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.
ponsfrilus
Posts: 44
Joined: Fri Jun 05, 2009 7:46 am
Location: Switzerland

List of possible variable in prepared email ?

Postby ponsfrilus » Fri Apr 30, 2010 4:57 am

Hi guys,
does anyone have the list of possible variables which can be used in prepared email?

I think it would be a good thing to put the #id of a paper in the email's title to search more confortablely.
Last edited by ponsfrilus on Fri Apr 30, 2010 5:20 am, edited 1 time in total.

ponsfrilus
Posts: 44
Joined: Fri Jun 05, 2009 7:46 am
Location: Switzerland

Re: List of possible variable in prepared email ?

Postby ponsfrilus » Fri Apr 30, 2010 5:13 am


ponsfrilus
Posts: 44
Joined: Fri Jun 05, 2009 7:46 am
Location: Switzerland

Re: List of possible variable in prepared email ?

Postby ponsfrilus » Fri Apr 30, 2010 5:16 am

Change ligne 1505 - 1506 from

Code: Select all

               'paperTitle' => $trackDirectorSubmission->getLocalizedTitle()
            ));
to

Code: Select all

               'paperTitle' => $trackDirectorSubmission->getLocalizedTitle(),
               'paperId' => $trackDirectorSubmission->getPaperId()
            ));


In /ocs23/classes/submission/trackDirector/TrackDirectorAction.inc.php to be able to use the var {$paperId} in your prepared email.

Exemple: Editorial decision on "{$paperTitle}" #{$paperId}

ponsfrilus
Posts: 44
Joined: Fri Jun 05, 2009 7:46 am
Location: Switzerland

Re: List of possible variable in prepared email ?

Postby ponsfrilus » Fri Apr 30, 2010 5:20 am


ponsfrilus
Posts: 44
Joined: Fri Jun 05, 2009 7:46 am
Location: Switzerland

Re: List of possible variable in prepared email ?

Postby ponsfrilus » Fri Apr 30, 2010 9:33 am

And fixed! Thanks!

Code: Select all

--- a/classes/mail/PaperMailTemplate.inc.php
+++ b/classes/mail/PaperMailTemplate.inc.php
@@ -59,6 +59,7 @@
       $conference = isset($this->conference)?$this->conference:Request::getConference();
       $schedConf = isset($this->schedConf)?$this->schedConf:Request::getSchedConf();
 
+      $paramArray['paperId'] = $paper->getId();
       $paramArray['paperTitle'] = strip_tags($paper->getLocalizedTitle());
       $paramArray['conferenceName'] = strip_tags($conference->getConferenceTitle());
       $paramArray['schedConfName'] = strip_tags($schedConf->getSchedConfTitle());


Return to “OCS Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests