Home
Customizing business card information
Customize the main section of the Profiles business card by editing settings in the profiles-config.xml file.
To edit configuration files, use wsadmin. See Start wsadmin for information about how to start the wsadmin command-line tool.
The main section of the business card displays the contact information and location information associated with a profile. You can customize this area by configuring the type of information that displays and the order in which it displays. You can also add custom extension attributes and blocks of HTML to this section of the business card.To customize the main section of the business card:
Use wsadmin to access and check out the Profiles configuration files.
- Access the Profiles configuration files:
- Stand-alone deployment:
execfile("profilesAdmin.py")
- Network deployment:
execfile("WAS_HOME/profiles/Dmgr01/config/bin_lc_admin/profilesAdmin.py")
- Check out the Profiles configuration files...
ProfilesConfigService.checkOutConfig("<working_directory>", "cell_name")where:
- <working_directory> is the temporary working directory to which the configuration XML and XSD files are copied and are stored while you make changes to them. Use forward slashes to separate directories in the file path, even if you are using the Microsoft Windows operating system.
- cell_name is the name of the WebSphere Application Server cell hosting the Profiles feature. This argument is required even in stand-alone deployments. This argument is case-sensitive, so type it with care. If you do not know the cell name, do one of the following to determine it:
- Stand-alone deployment: See:
WAS_HOME\profiles\profile_name\config\cells\
- Network deployment: From wsadmin...
print AdminControl.getCell()
For example:
- AIX/Linux:
ProfilesConfigService.checkOutConfig("/opt/prof/temp","foo01Cell01")
- Microsoft Windows:
ProfilesConfigService.checkOutConfig("c:/prof/temp","foo01Cell01")
- Edit profiles-config.xml
- Locate the <businessCardLayout> element, and specify the information that you want to display by adding the following attributes under the <attributes> element:
Business card attributes
Subelement Description attribute Specifies the predefined attribute that you want to display. extensionAttribute Specifies the custom extension attribute that you want to display. For information on adding custom extension attributes to Profiles, see Adding custom extension attributes. html Specifies a block of HTML to display in the business card. Each subelement can optionally include the following attributes:
- labelKey. Specifies the label to display with the attribute.
There is no default label for attributes. If showLabel is set to true, explicitly define a label to use using the labelKey attribute.
- bundleIdRef. Enables you to reference an external bundle contained in a ZIP file.
For example:
<businessCardLayout profileType="default"> <attributes> ... <html prependHtml="<div class='adr'>"/> <attribute showLabel="false" hideIfEmpty="true" ...>workLocation.city</attribute> <extensionAttribute extensionIdRef="region" showLabel="true" labelKey="label.region" bundleIdRef="mylabels" hideIfEmpty="true" prependHtml="..."/> ... </attributes> ... </businessCardLayout>
- Save your changes. Apply property changes
Add custom extension attributes for Profiles
Related tasks