Custom map icons for specialised DITA topics?
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 39
- Joined: Wed Dec 31, 2008 12:42 am
Custom map icons for specialised DITA topics?
Post by expatriate »
Hello
Is it somehow possible, using a customised icon, to indicate in the DITA Maps Manager view which topics which are of specialised types (i.e. other than task, reference or concept)?
This sounds like a big ask, but would be really useful.
Thanks
Pat
Is it somehow possible, using a customised icon, to indicate in the DITA Maps Manager view which topics which are of specialised types (i.e. other than task, reference or concept)?
This sounds like a big ask, but would be really useful.
Thanks
Pat
-
- Posts: 418
- Joined: Mon May 09, 2016 9:37 am
Re: Custom map icons for specialised DITA topics?
Post by sorin_carbunaru »
Hello Pat,
There is something that could be done through our API, as we have a DITAMapNodeRendererCustomizer. Unfortunately we do not have an API yet that can change the icon based on the characteristics of the target topic of a topicref. But we do have a customizeComputedTopicrefTitle(...) method. With it, the implementer of the customizer can add a special character at the beginning of the title, to indicate it is a specialization. Would that be enough?
All the best wishes,
Sorin Carbunaru
oXygen XML
There is something that could be done through our API, as we have a DITAMapNodeRendererCustomizer. Unfortunately we do not have an API yet that can change the icon based on the characteristics of the target topic of a topicref. But we do have a customizeComputedTopicrefTitle(...) method. With it, the implementer of the customizer can add a special character at the beginning of the title, to indicate it is a specialization. Would that be enough?
All the best wishes,
Sorin Carbunaru
oXygen XML
-
- Posts: 39
- Joined: Wed Dec 31, 2008 12:42 am
Re: Custom map icons for specialised DITA topics?
Post by expatriate »
Thanks, Sorin, for the quick and encouraging response.
Yes, in principle this sounds perfect, especially as (if this is relevant) the titles of these topics will normally be not be rendered and would only be seen by the author. The oXygen API is an unvisited foreign country for me and I'm qualified only as a hacker, but I'll give it a try.
Best wishes
Pat
Yes, in principle this sounds perfect, especially as (if this is relevant) the titles of these topics will normally be not be rendered and would only be seen by the author. The oXygen API is an unvisited foreign country for me and I'm qualified only as a hacker, but I'll give it a try.
Best wishes
Pat
-
- Posts: 418
- Joined: Mon May 09, 2016 9:37 am
Re: Custom map icons for specialised DITA topics?
Post by sorin_carbunaru »
Hello,
I wanted to let you know that oXygen 19.1 is now available. We added in the existing DITAMapNodeRendererCustomizer the possibility to customize the icons displayed in the DITA Maps Manager depending on the "class" attribute value of each referenced topic. The context parameter of DITAMapNodeRendererCustomizer#getRenderingInformation() can be cast to DITANodeRendererCustomizerContextImpl, and this type of context can give you the value of the "class" attribute. Based on this value a certain icon can be set in the new rendering information.
Best wishes,
Sorin Carbunaru
I wanted to let you know that oXygen 19.1 is now available. We added in the existing DITAMapNodeRendererCustomizer the possibility to customize the icons displayed in the DITA Maps Manager depending on the "class" attribute value of each referenced topic. The context parameter of DITAMapNodeRendererCustomizer#getRenderingInformation() can be cast to DITANodeRendererCustomizerContextImpl, and this type of context can give you the value of the "class" attribute. Based on this value a certain icon can be set in the new rendering information.
Best wishes,
Sorin Carbunaru
-
- Posts: 418
- Joined: Mon May 09, 2016 9:37 am
Re: Custom map icons for specialised DITA topics?
Post by sorin_carbunaru »
Hello there,
Just wanted to announce that we also have a sample plugin available on GitHub, that customizes the topic titles and the icons from the DITA Maps Manager. The plugin can be found at https://github.com/oxygenxml/wsaccess-j ... esAndIcons.
Best wishes,
Sorin Carbunaru
Just wanted to announce that we also have a sample plugin available on GitHub, that customizes the topic titles and the icons from the DITA Maps Manager. The plugin can be found at https://github.com/oxygenxml/wsaccess-j ... esAndIcons.
Best wishes,
Sorin Carbunaru
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service