OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



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
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.

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


Return to OCS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 2 guests