Page 1 of 1
Auto Generation of Element IDs does not work for Nested elem
Posted: Fri Mar 20, 2015 1:05 pm
by SunNadimpalli01
Hi Folks,
I have a UIControl element nested inside a Paragraph element. When I use the Generate IDs option at the topic level, only the top level Paragraph element gets an ID. The nested UIControl element does get the ID automatically. I need to right click on each of the UIControl elements and use the Generate ID option.
Have you seen this behavior? Is there any thing that I can do to automatically generate IDs for all elements nested or not.
Regards,
Sundar
Re: Auto Generation of Element IDs does not work for Nested
Posted: Fri Mar 20, 2015 3:06 pm
by Radu
Hi Sundar,
In the main DITA menu there is an action called ID Options....
You can configure there the names or class values for elements for which IDs will be auto-generated, either when the elements are created or when you generate IDs on a larger selection in which the elements in the list are present.
Regards,
Radu
Re: Auto Generation of Element IDs does not work for Nested
Posted: Fri Mar 20, 2015 3:27 pm
by SunNadimpalli01
Hi Radu,
Thanks for your reply. My usecase is something like this. I have a uicontrol element inside a paragraph element.
Code: Select all
<p><uicontrol>Subcase</uicontrol></p>
When I say Generate IDs from the menu DITA -> Generate IDs.
The uicontrol element does not automatically get an ID. I need to manually Right+Click on the uicontrol element and click Generate IDs.
In the ID Options dialog I have selected the option - Auto generate IDs for elements.
My expectation from the menu DITA -> Generate IDs is that it automatically assigns an ID to all elements in a topic.
Regards,
Sundar
Re: Auto Generation of Element IDs does not work for Nested
Posted: Fri Mar 20, 2015 5:17 pm
by Radu
Hi Sundar,
The ID options dialog has a list of elements.
When generating IDs on a selection only for the elements in the list the IDs will be generated.
So you can add uicontrol to that list and repeat the generation.
Regards,
Radu
Re: Auto Generation of Element IDs does not work for Nested
Posted: Thu Mar 26, 2015 9:58 am
by SunNadimpalli01
Hello Radu,
Thank you very much, I tried what you suggested and now the IDs are automatically generated for all uicontrol elements in my topic when I click the Generate IDs option at the topic level.
Best Regards,
Sundar