Page 1 of 1
topicref inheriting attributes from topic
Posted: Tue Sep 05, 2023 8:15 pm
by MStarodub
Hello,
When creating a topicref to a topic in a map, is it possible to have the topicref automatically inherit some of the attributes from the topic that it is referencing.
Say for example, I have a concept that has a specific outputclass, and I want all future topicrefs to this concept to have that same outputclass, so that I will be able to see that outputclass in the Map Manager view for the map. How would I do that?
Re: topicref inheriting attributes from topic
Posted: Wed Sep 06, 2023 8:04 am
by Radu
Hi,
We do not have a special editing feature to enable in order to achieve exactly what you want. What information we present in the DITA Maps Manager cannot be configured via a setting.
I assume the perfect result would be to not copy the @outputclass value on the topicref itself because that would be redundant information but instead display its value on the topicref in the DITA Maps Manager view as if it would be present there.
We do have APIs which would allow an Oxygen plugin to take control over what gets presented in the DITA Mas Manager view.
For example this sample Oxygen plugin implemented in Javascript attempts to show in the DITA Maps Manager view the profiling attributes defined on the topic root element:
https://github.com/oxygenxml/wsaccess-j ... esAndIcons
Regards,
Radu
Re: topicref inheriting attributes from topic
Posted: Thu Sep 28, 2023 9:23 pm
by MStarodub
Hello,
installing the plugin worked for Oxygen Editor,but for some reason, it doesn't work for Oxygen Author. At first I thought there was some competing plugin that was overriding this new one somehow, but after removing other plugins, the issue persists.
The GitHub page says that the plugin works for Oxgen 21 and above, and I am using version 21.1 for Oxygen Author.
Do you have any idea what may be causing this issue?
Re: topicref inheriting attributes from topic
Posted: Fri Sep 29, 2023 7:41 am
by Radu
Hi,
This should work, I re-checked but the plugin does not have any custom code which would only work in Editor but not in Author.
So I suppose in the XML Author "plugins" folder you now have an extra folder named "dmmCustomizeTopicTitlesAndIcons" which contains inside the plugin.xml and the other resources.
When you open XML Author do you get some kind of error? If you go to the Preferences->Plugins page do you see the plugin installed?
Regards,
Radu
Re: topicref inheriting attributes from topic
Posted: Thu Oct 19, 2023 5:29 pm
by MStarodub
Hello,
Sorry for the delayed response. I do not get an error message, and I do see the customizer plugin installed when I look at the plugins installed in preferences. I do see the com.oxygenxml.dmm.customize.topic.titles.and.icons folder in the plugins folder
Re: topicref inheriting attributes from topic
Posted: Sun Oct 22, 2023 2:27 pm
by chrispitude
Hi MStarodub,
Are you asking about displaying a topic's attribute in the DITA Maps Manager in Oxygen (DITA Maps Manager), or actually inheriting the attribute value during publishing/transformation?
Re: topicref inheriting attributes from topic
Posted: Mon Oct 23, 2023 3:29 pm
by MStarodub
Simply displaying would be enough, it does not need to actually inherit.
Re: topicref inheriting attributes from topic
Posted: Tue Oct 24, 2023 8:53 am
by Radu
Hi,
As you said the plugin worked for XML Editor I assume you have modified the plugin's Javascript code to fit your needs.
I do not know why the same modified plugin does not work for XML Author.
Oxygen 21 is in our end of life stage so officially we no longer provide any kind of support for it.
https://www.oxygenxml.com/eol.html
Regards,
Radu