OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Add new Prepared Email/Template during plugin installation

OJS development discussion, enhancement requests, third-party patches and plug-ins.

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

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

Add new Prepared Email/Template during plugin installation

Postby JohnGrobler » Tue Jun 12, 2012 3:17 am

Good day,

We're busy developing a new Generic Plugin for OJS. This plugin will have a function to email certain users by using a Prepared Email in OJS.

We would like not to create this Prepared Email for each OJS site manually, but the Generic Plugin should create the Prepared Email template on installation.

We've tried to use the getInstallEmailTemplatesFile() and getInstallEmailTemplateDataFile() functions, but the Prepared Email is not created in the database on Generic Plugin installation.

Is there documentation available or maybe an example of another plugin which creates a new Prepared Email on installation?

Thanks,
John Grobler
JohnGrobler
 
Posts: 51
Joined: Mon Dec 07, 2009 1:41 pm

Return to OJS Development

Who is online

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