You are viewing the PKP Support Forum | PKP Home Wiki

customizing Submission Ack template

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

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

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.

customizing Submission Ack template

Postby sheardln » Thu Jan 16, 2014 2:10 pm

We would like to customize the Submission Ack template. I have gotten it to look like I want except for two details:
-I want to have some text appear in italics in the email and I can't figure out how to do that. There doesn't seem to be a place to edit the font and html markup doesn't work either.
-I want to change the authorName attribute to just show the last name. I can't find the location where these attributes are set. They appear to be a difference site then the documentation states.
We are using version

Posts: 16
Joined: Thu Jan 16, 2014 2:01 pm

Re: customizing Submission Ack template

Postby JasonNugent » Fri Jan 17, 2014 10:21 am

Hi sheardln,

If you want to use just the author's last name in place of authorName, you'll need to make changes to the file in classes/author/form/submit/AuthorSubmitStep5Form.inc.php, which is where that parameter is used.

To add italics, you'll need to edit the email template itself. Email templates are stored in the database. Look for the template called SUBMISSION_ACK in the email_templates_data database table. You'll need to edit it for each locale you use if you want your changes to appear in different languages.

Site Admin
Posts: 910
Joined: Tue Jan 10, 2006 6:20 am

Re: customizing Submission Ack template

Postby asmecher » Fri Jan 17, 2014 10:41 am

Hi all,

Just to correct one point above -- actually, the current stable release of OJS doesn't support HTML in email. Future releases (starting with OJS 3.0) will use the 3rd-party phpmailer library to handle email sending, and this does support HTML, but if you want to back-port that to OJS 2.4.x you'll need to adapt the fixes at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7980 -- or alternately customize the existing mail classes to permit HTML by adding the required headers.

Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 1 guest