Difference between revisions of "How to add profile role"
From ADF Docs
Line 1: | Line 1: | ||
== Add a New Profile Role == | == Add a New Profile Role == | ||
− | Adding a new profile role is a valuable piece to the profile application. | + | Adding a new profile role is a valuable piece to the profile application. To add a new profile role: |
− | # Update the [[PT_Profile Site_Configuration|Site Configuration]] with the new role. Add a new tag under the <ROLES> tag | + | # Update the [[PT_Profile Site_Configuration|Site Configuration]] with the new role. Add a new tag under the <ROLES> tag with the name of the role. Next, you'll add the SUBSITE_ID and TEMPLATE_ID tags. |
− | # Populate | + | # Populate SUBSITE_ID by creating a new subsite for the profile pages and update the ID in the configuration file. See the [[PT_Profile Subsites|Subsites]] wiki page for additional details. |
− | # Populate | + | # Populate TEMPLATE_ID by creating a new template for the profile pages and update the ID in the configuration file. See the [[PT_Profile_Template|Profile_Template]] wiki page for additional details. (Note: This step is optional - you can also use one template for all profile roles.) |
# Depending on the complexity of your roles and how many sites are implementing the profile app, you can either update the [[ProfileRoles_Component|ProfileRoles Component]] with the new roles. | # Depending on the complexity of your roles and how many sites are implementing the profile app, you can either update the [[ProfileRoles_Component|ProfileRoles Component]] with the new roles. | ||
## To update the ProfileRoles.cfc: | ## To update the ProfileRoles.cfc: |
Revision as of 18:03, 24 January 2010
Add a New Profile Role
Adding a new profile role is a valuable piece to the profile application. To add a new profile role:
- Update the Site Configuration with the new role. Add a new tag under the <ROLES> tag with the name of the role. Next, you'll add the SUBSITE_ID and TEMPLATE_ID tags.
- Populate SUBSITE_ID by creating a new subsite for the profile pages and update the ID in the configuration file. See the Subsites wiki page for additional details.
- Populate TEMPLATE_ID by creating a new template for the profile pages and update the ID in the configuration file. See the Profile_Template wiki page for additional details. (Note: This step is optional - you can also use one template for all profile roles.)
- 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.
- To update the ProfileRoles.cfc:
- Locate the '/ADF/apps/pt_profile/components/profileRoles.cfc' file
- In the setRolePermission function, add a new case statement for the role name. Add your logic to set the roles permmission.
- To update the ProfileRoles.cfc: