Adding Fields to the Person Form - 3.1: Difference between revisions

From IHRIS Wiki
No edit summary
Line 8: Line 8:


==Creating a Site==
==Creating a Site==
We will make our customizations to a copy of the iHRIS Manage Demo site located at ''ihris-manage/sites/Demo.'' For example, on unix you might do
We will make our customizations to the iHRIS Manage Demo site. On unix you might be working under:
  cd ihris-manages/sites
/var/lib/iHRIS
  cp -R Demo Tutorial
and the demo site would be at:
/var/lib/iHRIS/3.1/ihris-manages/sites/Demo
If you have installed Windows iHRIS Manage you will be working under the directory:
  C:\Program Files\ihris-suite
and the Demo site will at:
  C:\Program Files\ihris-suite\sites\ihris-manage


==Creating a New Module==
==Creating a New Module==

Revision as of 13:50, 10 March 2009

In this tutorial, we will look at adding a new fields to the person form to version 3.1 of iHRIS Manage. We will add two fields, one called "Favorite Color" which will be a drop-down list of values, and one will be "Favorite Animal" which will be a free-text field. There are many ways to skin my favorite animal, a cat. Likewise, there are many ways to add a field to a form. In order to better maintain the code and the customizations we are making, we will do so by creating a sub-module Tutorial_ManagePerson of our site-module which contain the all of our changes. To look at a similar customization, look at [CSSC]'s customizations and in particular under modules/Person

Pre-Requisites

Please read over the following articles:


Creating a Site

We will make our customizations to the iHRIS Manage Demo site. On unix you might be working under:

/var/lib/iHRIS

and the demo site would be at:

/var/lib/iHRIS/3.1/ihris-manages/sites/Demo

If you have installed Windows iHRIS Manage you will be working under the directory:

C:\Program Files\ihris-suite

and the Demo site will at:

C:\Program Files\ihris-suite\sites\ihris-manage

Creating a New Module

Adding the Fields to Magic Data

Customizing the Template Files

Enabling the Module