Use ask variable to insert conref or keyref

Oxygen general issues.
JulieP
Posts: 16
Joined: Sat May 30, 2015 2:18 am

Use ask variable to insert conref or keyref

Post by JulieP »

Hello,
Is there a way to let writers insert a conref or keyref with the ask variable? I want the dialog box to open up a reuse file and the writer can select an image to reuse from the file.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Use ask variable to insert conref or keyref

Post by Radu »

Hi,

All our "ask" editor variable types are listed here:
https://www.oxygenxml.com/doc/ug-editor ... ables.html
Basically an ask editor variable is expanded to a string value which can be used afterwards.
Can you give us more details? Do you use ask editor variables in custom Author actions?
We have a "DITA Reusable Components" side view, maybe it can be used to search for those reusable DITA <image> elements. The same side view can be used to insert key references.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
JulieP
Posts: 16
Joined: Sat May 30, 2015 2:18 am

Re: Use ask variable to insert conref or keyref

Post by JulieP »

Thanks for the quick reply, Radu. I'm trying to create a code template where authors would need to insert an image that is reused from a file. So when the author uses the code template, it would be great for a window to open where they can select an image from that file and insert it.
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Use ask variable to insert conref or keyref

Post by Radu »

Hi Julie,

I'm afraid this cannot be done with a code template. Maybe a custom Author action with a custom operation based on Java or Javascript code could allow you to take full control over what the action does...

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply