Configure required fields for processing
Edit profiles-config.xml to configure additional required fields for template processing.
When rendering the profile details or edit form templates, all the information about a user profile is retrieved and made available to the template’s author. This enables you to reference the additional data required for the templates.
To optimize system performance, we can use a limited set of data to render the profile business card and profile search results pages if the application templates do not require these fields.
Template data Description codes
The application will resolve the related fields for work location, organization, and department information so it may be used in the template.
extensions
The application will resolve all simple and rich text extension fields for the profile. XML extension fields are not currently made available to the template author.
secretary
The application will resolve the secretary name and email address if the profile has an associated secretary.
manager
The application will resolve the manager name and email address if the profile has an associated manager.
connection
The application will resolve the connection status between the profile and the user viewing the profile. This is only supported for the businessCardInfo template.
- Open profiles-config.xml using a text editor.
- Locate the <template/> element for the business card or search results.
- Add a <templateData/> element with one of the required template data values to the template elements <templateDataModel/> container.
For example, the following configuration states that when rendering the business card template, all the profile record data including resolved codes, extension values, secretary, manager, and connection information is resolved for use by the template code.
<template name="businessCardInfo"> <templateDataModel> <templateData>codes</templateData> <templateData>extensions</templateData> <templateData>secretary</templateData> <templateData>manager</templateData> <templateData>connection</templateData> </templateDataModel> </template>
- Save the changes.
- Check in the configuration update.
- Restart the application.
Parent topic:
Template configuration options