How to add profile role

From ADF Docs
Revision as of 23:33, 22 November 2009 by Renee.mckechnie (talk | contribs) (Created page with '== How To Add a New Profile Role == Adding a new profile role is a valuable piece to the profile application. The following is a list of steps and options to consider moving for…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How To Add a New Profile Role

Adding a new profile role is a valuable piece to the profile application. The following is a list of steps and options to consider moving forward.

  1. Update the Site Configuration with the new role. Add a new tag under the <ROLES> tag for the name of the role. Also, remember the SUBSITE_ID and TEMPLATE_ID tags.
  2. Populate the SUBSITE_ID by creating a new subsite for the profile pages and update the ID in the configuration file. More details are on the Subsites wiki page.
  3. Populate the TEMPLATE_ID by creating a new template for the profile pages and update the ID in the configuration file. More details are on the Profile_Template wiki page. This is optional, b/c you can use one template for all profile roles.
  4. Depending on the complexity of your roles and how many sites are implementing the profile app, you can either update the ProfileRoles Component with the new roles.
    1. To update the ProfileRoles.cfc:
      1. Locate the '/ADF/apps/pt_profile/components/profileRoles.cfc' file
      2. In the setRolePermission function, add a new case statement for the role name. Add your logic to set the roles permmission.