Difference between revisions of "How to add profile role"
From ADF Docs
(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…') |
(→How To Add a New Profile Role) |
||
Line 5: | Line 5: | ||
# 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 [[PT_Profile Subsites|Subsites]] wiki page. | # 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 [[PT_Profile Subsites|Subsites]] wiki page. | ||
# 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 [[PT_Profile_Template|Profile_Template]] wiki page. This is optional, b/c you can use one template for all profile roles. | # 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 [[PT_Profile_Template|Profile_Template]] wiki page. This is optional, b/c you can 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 [[ | + | # 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: | ||
### Locate the '/ADF/apps/pt_profile/components/profileRoles.cfc' file | ### Locate the '/ADF/apps/pt_profile/components/profileRoles.cfc' file |
Revision as of 18:19, 18 December 2009
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.
- 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.
- 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.
- 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.
- 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: