Page 1 of 1

Reuse Actions across frameworks

Posted: Wed Aug 12, 2020 8:41 pm
by kirkilj
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?

Re: Reuse Actions across frameworks

Posted: Thu Aug 13, 2020 1:47 pm
by alex_jitianu
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

Re: Reuse Actions across frameworks

Posted: Thu Aug 13, 2020 11:00 pm
by kirkilj
Hi Alex,

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

Thanks so much,

John