- Published on
How to automatically generate ID's for elements in oXygen XML Editor
- Authors

- Name
- Khalil
- @Im_Khalil
There are multiple ways to automatically generate ID's for elements when they are inserted in oXygen XML Editor.
Using idGenerationDefaultOptions.xml :
idGenerationDefaultOptions.xml which is found in the ${oxygenInstallDir}\frameworks\dita\resources directory and keeps only the default elements for which you need IDs to be generated. You can edit this file and additional elements for which you want to add ID.

Using ID Options:
Using ID options dialog box we can configure list of elements to generate ids automatically. ID Options dialog box can be found on $(frameworkMenuItem)>ID Options

PS: The changes made using ID Options dialog will override the elements list configured in idGenerationDefaultOptions.xml file.
Programatic way:
Following is the api to generate id for elements
PluginWorkspaceProvider.getPluginWorkSpace().getUtilAccess().expandEditorVariables("${id}",null);
You might also like to read
- 1.AEM Dispatcher Series 2 - Understanding the `dispatcher.any` File
- 2.AEM Dispatcher Series 3 - Securing Your AEM Site - Deep Dive into Dispatcher `/filter` Rules
- 3.AEM Dispatcher Series 4 - A Developer’s Guide to Dispatcher `/cache` Rules
- 4.AEM Dispatcher Series 5 - When and How to Clear Cache
- 5.AEM Dispatcher Series 6 - Handling Vanity URLs, Sessions, and `/renders`