Custom special characters in Correspondence Management
- Topics:
- Correspondence Management
CREATED FOR:
- Admin
- User
- Developer
Overview
Correspondence Management has built-in default support for 210 special characters that you can insert in letters with ease.
For example, you can insert the following special characters:
- Currency symbols such as €,¥, and £
- Mathematical symbols such as ∑, √, ∂, and ^
- Punctuation symbols as ‟ and "
You can insert special characters in letters:
- In the text editor
- In an editable, inline module in a correspondence
The admin can add support for more/custom special characters by customization. This article provides the instructions on how you can add support for additional, custom special characters.
Add or modify support for custom special characters in Correspondence Management
Use the following steps to add support for custom special characters:
-
Go to
https://'[server]:[port]'/[ContextPath]/crx/de
and login as Administrator. -
In the apps folder, create a folder named specialcharacters with path/structure similar to the specialcharacters folder (in the textEditorConfig folder under libs):
-
Right-click the specialcharacters folder at the following path and select Overlay Node:
/libs/fd/cm/ma/gui/configuration/textEditorConfig/specialcharacters
-
Ensure that the Overlay Node dialog has the following values:
Path: /libs/fd/cm/ma/gui/configuration/textEditorConfig/specialcharacters
Overlay Location: /apps/
Match Node Types: Checked
NOTE
Do not change the /libs branch. Any changes you do make may be lost, because this branch is liable to change whenever you:* Upgrade on your instance * Apply a hot fix * Install a feature pack
-
Click OK and then click Save All. The specialcharacters folder is created in the specified path.
After creating the overlay, verify the node structure tags. Each node created in /apps using the overlay should have the same class and properties as defined in /libs for that node. If any property or tag is missing in the node structure under /apps location, sync its tags with the corresponding node in /libs.
-
-
Ensure that the textEditorConfig node has the following properties and values:
NameTypeValuecmConfigurationTypeStringcmTextEditorConfigurationcssPathString/libs/fd/cm/ma/gui/components/admin/createasset/textcontrol/clientlibs/textcontrol -
Right-click the specialcharacters folder at the following path and select Create > Child Node and then click Save All:
/apps/fd/cm/ma/gui/configuration/textEditorConfig/specialcharacters/<YourChildNode>
-
Refresh the Text Editor\Create Correspondence UI page. The node that you have added is the last one in the list of Special characters in the UI.
-
Click Save All.
-
Changes in the special characters as required:
- Add a child node under "/apps/fd/cm/ma/gui/configuration/textEditorConfig/specialcharacters" with mandatory properties.
- Click Save All
- Refresh the Text Editor\Create Correspondence UI so you can see the changes.
- Overlay the node to be updated as explained above and verify tags and classes.
- Change any values, such as caption, value, endValue, and multipleCaption.
- Click Save All.
- Refresh the Text Editor\Create Correspondence UI so you can see the changes.
- Overlay the node to be hidden under "/apps/fd/cm/ma/gui/configuration/textEditorConfig/specialcharacters"
- Add sling:hideResource (Boolean) property to the node (under apps) to be hidden.
- Click Save All.
- Refresh the Text Editor\Create Correspondence UI so you can see the changes.
- Add the property "sling:hideChildren (String or String[])" to "/apps/fd/cm/ma/gui/configuration/textEditorConfig/specialcharacters".
- Add node names (special characters to be hidden) as values for the "sling:hideChildren" property.
- Click Save All.
- Refresh the Text Editor\Create Correspondence UI so you can see the changes.
- Add a child node under "/apps/fd/cm/ma/gui/configuration/textEditorConfig/specialcharacters" with mandatory properties.
- Add the "sling:orderBefore (String)" property to the newly created child node.
- Add the node name as the value before which the newly added special character is to be shown.
- Click Save All.
- Refresh the Text Editor\Create Correspondence UI so you can see the changes.