Set out to add a heading and text area for open review policy to the settings page in the openReview plugin:
in classes/form/SettingsForm.inc.php
add these lines to assign a volue for the contents of the text area
$this->setData('openReviewPolicy',
$plugin->getSetting($journal->getId(), 'openReviewPolicy') ?
$plugin->getSetting($journal->getId(), 'openReviewPolicy') :
__('plugins.generic.openReview.settings.default.openReviewPolicyDescription',
array('journal' => $journal->getLocalizedTitle()))
);
add this to readInputData() (not sure exactly why)
'openReviewPolicy'
add this line to fetch() to assign the value of the second argument to the element in the DOM specified by the first argument
$templateMgr->assign('openReviewPolicyContent', __('plugins.generic.openreview.settings.default.openReviewPolicyDescription'));;
add this line to execute() to write the value of the element in the DOM with the id specified by the third argument and the key provided in the second argument to the plugin_settings table in the db
$plugin->updateSetting($this->_journalId, 'openReviewPolicy', $this->getData('openReviewPolicy'), 'string');
in templates/seetingsForm.tpl
add these lines to create the elements in the DOM to display and edit the text of the open review policy
<h4>{translate key="plugins.generic.openReview.settings.openReviewPolicyTitle"}</h4>
<textarea name="openReviewPolicy" id="openReviewPolicy" rows="12" cols="80" class="textArea richContent">{$openReviewPolicy|escape}</textarea>