Reuse Actions across frameworks

Post here questions and problems related to oXygen frameworks/document types.
kirkilj
Posts: 107
Joined: Fri May 14, 2010 12:14 am

Reuse Actions across frameworks

Post by kirkilj » Wed Aug 12, 2020 8:41 pm

We've extended the DITA, DITAMap, Maven, and Ant frameworks and have a set of custom toolbars/actions that we want to reuse across all 4. The only workable method we've been able to determine thus far is duplicating all of them in every framework, which is not sustainable. Is there a way we can write them once and reuse them in different frameworks?

We tried creating a framework that had association rules for all of them, but that was not workable, since our frameworks are extensions of others and we'd lose the extension benefits.

The only hack I can think of quickly is to edit the XML representation of the frameworks and copy the relevant sections to each of the others by hand, or by using a script to do the same, but that's problematic too. Is there an inclusion element we can use in the frameworks' XML?

alex_jitianu
Posts: 819
Joined: Wed Nov 16, 2005 11:11 am

Re: Reuse Actions across frameworks

Post by alex_jitianu » Thu Aug 13, 2020 1:47 pm

Hello John,

What Oxygen version are you using? In the last release, 22.1, we added the possibility to define actions in their own file. After you put the actions in separate files, you can copy them in every framework directory.

Best regards,
Alex

kirkilj
Posts: 107
Joined: Fri May 14, 2010 12:14 am

Re: Reuse Actions across frameworks

Post by kirkilj » Thu Aug 13, 2020 11:00 pm

Hi Alex,

Yes, we're using Oxygen 22.1, and your answer was music to my ears.

Thanks so much,

John

Post Reply