Page 1 of 1

AuthorOutlineCustomizer and AuthorBreadCrumbCustomizer problems

Posted: Fri Mar 29, 2013 5:26 pm
by xscorpio
Hi,

I'm trying to customize the render for the node in Outline and Bread crumb.

For that I'm using AuthorOutlineCustomizer and AuthorBreadCrumbCustomizer classes.

In my method customizeRenderingInformation(), I have the following instruction: renderInfo.setIconPath("${frameworks}/gdr/img/center.png");

But it doesn't work. Why?

Re: AuthorOutlineCustomizer and AuthorBreadCrumbCustomizer problems

Posted: Fri Mar 29, 2013 6:21 pm
by Radu
Hi,

The method setIconPath is indeed available in the RenderingInformation API but it does not work for the AuthorOutlineCustomizer, we'll try to fix this.

Instead you can overwrite this method in the ExtensionsBundle implementation:

Code: Select all

ExtensionsBundle.createXMLNodeCustomizer()
or create an implementation of ro.sync.exml.workspace.api.node.customizer.XMLNodeRendererCustomizer (the Author SDK should contain the sources for the DITA and Docbook implementation classes as an example) and set it as a separate extension in the document type (edit the document type and set it in the "Extensions tab").

An extension of type XMLNodeRendererCustomizer (which is a newer API) should also provide icons in the Text page Outline.

The breadcrumb which shows the path to the current node does not have API support to set a custom icon to each node (just the name).

Regards,
Radu