Thanks, Radu! I'd understood how everything worked EXCEPT for removing the existing "fig" action.

The Content Completion tab of the Author page confused me. I thought that all I could remove was the various wizard actions that were displayed in the Current Actions window -- and the help did not suggest anything different. (This is the URL mapped to the help icon on the page: https://www.oxygenxml.com/doc/versions/17.1/ug-author/#topics/the-document-type-dialog.html)

Inserting a <fig> using the Content Completion Assistant now always inserts a <fig> element that contains <title>. Is there a way to ensure that a user inserting an element from the Element view will have the same experience and result?

Best,
Kris

Kristen James Eberlein
Chair, OASIS DITA Technical Committee
Principal consultant, Eberlein Consulting
www.eberleinconsulting.com
+1 919 622-1501; kriseberlein (skype)

On 4/11/2018 4:29 AM, Oxygen XML Editor Support (Radu Coravu) wrote:
Hi Kris,

Besides modifying the DTDs, you should try to create your own action to insert a section and add the action to the content completion window.

Here are some steps:

1) Go to the Preferences->"Document Type Association" page and edit or extend and edit the "DITA" framework configuration.

2) In the "Author" tab there is an "Actions" tab. Create a new action with a specified ID and name.
Choose for the action an activation xpath which specifies that it should be enabled only in places where figures can be inserted. You can use a special extension we have for it:

https://www.oxygenxml.com/doc/versions/20.0/ug-editor/topics/oxy-allows-child-element.html

Choose to run an "InsertFragmentOperation" which inserts your XML fragment when the XPath is enabled. I'm attaching a screenshot with how this looks like on my side.

3) In the "Author->Content Completion" tab there is a "Remove content completion items" list to which you can add "fig" (because you want to remove the old entry from the list).
Then in the "Available actions" list there you will find the "fig_with_title" which you can copy to the "Current actions" list with the display name of "fig".

4) Save all your changes and try it out, open a topic, ENTER, in the content completion window type "fig" and your action should be there (it has a different icon than the older "fig" entry).

This works similar for section with title.

Regards,
Radu

Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

On 4/10/2018 10:16 PM, Kristen James Eberlein wrote:
How can I configure this in oXygen Author 17.1? I am using a framework.
Thanks.



_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user