Customize display using templates
Customize display
Customize various sections of the Profiles application using the supplied template files. We can choose to modify the set of standard and extension attributes that are rendered in the user interface for a profile record. Extension attributes of type XML are not provided for use by template authors. We can also modify the structure of the layout of content using the flexibility provided by the FreeMarker Template Language.
The customization templates are :
businessCardInfo.ftl Layout of main section of the business card profileDetails.ftl Display of profile properties profileEdit.ftl Display of the edit form for a profile searchResults.ftl Display of profile fields in select views that render lists of users
- Check out the Profiles configuration files:
app_server_root/profiles/Dmgr01/bin
./wsadmin.sh -lang jython
execfile("profilesAdmin.py")
ProfilesConfigService.checkOutConfig("/tmp", "cell_name")To determine cell name:
print AdminControl.getCell()
- Open the needed configuration file, for example to edit the main section of the business card display, open....
Connections-config/profiles/templates/businessCardInfo.ftl
- Modify the file contents to include any custom HTML or fields.
- Save the changes.
- After making changes, check the configuration files back in, and we must do so during the same wsadmin session in which you checked them out for the changes to take effect. See Applying property changes in Profiles for information about how to save and apply the changes.
- If we have enabled template reloading, the changes are reflected immediately in the user interface. If not, restart the application to recompile the template and display the customization changes.
Customize display
- Customize profile page display
- Customize business card information
- Customize search results information
- Customize edit display fields
Parent topic:
Customize the Profiles user interface
Related:
Post-migration steps for profile types and profile policies
Add custom extension attributes for Profiles
Apply property changes in Profiles
Profile-types