Page 1 of 1
Use ask variable to insert conref or keyref
Posted: Fri Jan 06, 2023 11:31 am
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.
Re: Use ask variable to insert conref or keyref
Posted: Fri Jan 06, 2023 12:05 pm
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
Re: Use ask variable to insert conref or keyref
Posted: Fri Jan 06, 2023 12:08 pm
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.
Re: Use ask variable to insert conref or keyref
Posted: Fri Jan 06, 2023 1:44 pm
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