Button disappears when using custom framework in Web Author
Posted: Tue Nov 12, 2019 6:51 pm
Hi,
We use custom frameworks for the DITA maps and topics in the desktop app to add some buttons, and to set the templates and Schematron rules to use.
However, when uploading these frameworks to Web Author, the button 'Create a new DITA resource and insert a reference to it' disappears when viewing a map, even though we can see it in the desktop app.
When checking the .framework file, we can see that the button is listed:
If we don't set the custom framework, then we can see the button when viewing maps, but we cannot see the custom templates when using this button.
How can we set up the custom framework to show the button 'Create a new DITA resource and insert a reference to it' and to be able to see our custom templates when using it?
Thanks!
Grethel
We use custom frameworks for the DITA maps and topics in the desktop app to add some buttons, and to set the templates and Schematron rules to use.
However, when uploading these frameworks to Web Author, the button 'Create a new DITA resource and insert a reference to it' disappears when viewing a map, even though we can see it in the desktop app.
When checking the .framework file, we can see that the button is listed:
Code: Select all
<action>
<field name="id">
<String>insert.new.dita.resource</String>
</field>
<field name="name">
<String>${i18n(insert.new.dita.resource)}</String>
</field>
<field name="description">
<String>${i18n(insert.new.dita.resource_description)}</String>
</field>
<field name="largeIconPath">
<String>/images/NewTopic24.png</String>
</field>
<field name="smallIconPath">
<String>/images/NewTopic16.png</String>
</field>
<field name="accessKey">
<String>N</String>
</field>
<field name="accelerator">
<null/>
</field>
<field name="actionModes">
<actionMode-array>
<actionMode>
<field name="xpathCondition">
<String>self::*[contains(@class, " map/map ") or contains(@class, " map/topicref ")
or contains(@class, " map/relcell ") or contains(@class, " map/relcolspec ")]
</String>
</field>
<field name="argValues">
<serializableOrderedMap/>
</field>
<field name="operationID">
<String>ro.sync.ecss.extensions.dita.map.topicref.InsertNewTopicOperation</String>
</field>
</actionMode>
</actionMode-array>
</field>
<field name="enabledInReadOnlyContext">
<Boolean>false</Boolean>
</field>
</action>
How can we set up the custom framework to show the button 'Create a new DITA resource and insert a reference to it' and to be able to see our custom templates when using it?
Thanks!
Grethel