Ohio Customizations CLA

From PikaDocs

Send E-mail Pop-up

Image:Send_email_action.png

This customization adds another Case Screen Action link that allows staff to send e-mail directly from Pika CMS.

Quick E-mail Pop-up Screen
Enlarge
Quick E-mail Pop-up Screen
  • Download the customization files pika_email.zip (here)
  • Place email.php under the modules directory in Pika.
  • Place email.html under the subtemplates directory in Pika.
  • Add the following lines of code to your case_screen.html file.

Under the Actions Section

<img src="%%[base_url]%%/images/point.gif" alt="Arrow"/>
<a class="butt" href="javascript:popUpEmail('%%[base_url]%%/modules/email.php?case_id=%%[case_id]%%&funding=%%[funding]%%&number=%%[number]%%')">
Send Email</a><br/>

Between the javascript <script> </script> tags at the bottom of the file

function popUpEmail(URL) {
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = 
    window.open(URL, '" + id + "', 'width=700,height=700,resizable=1,status=1,location=1,scrollbars=1');");
}
  • Add the following lines to your settings.php file. The 'text_html' setting has two options, either 'text' or 'html'. The 'html' option is for programs that have implemented the WYSIWYG text editor in use by the Ohio programs. The 'text' option is for systems that use the standard Pika CMS text editing facilities.
'text_html' => 'text',
'full_url' => 'http://full_url_to_your_site'