Implement a button to open a keyref
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 160
- Joined: Mon Nov 24, 2014 1:49 pm
- Location: Greven/Germany
Implement a button to open a keyref
Hi,
it is possible to simulate a button to open a DITA keyref with plain CSS:
Is it possible to do the same thing with a oxy_button?
Greetings,
Stefan
it is possible to simulate a button to open a DITA keyref with plain CSS:
Code: Select all
*[keyref]:before {
link : oxy_concat("" , attr(keyref , keyref)) ;
content : uri(../../img/link.png) "[" attr(keyref) "]" ;
text-decoration-line : underline ;
}
Greetings,
Stefan
stefan-jung.org – Your DITA/DITA-OT XML consultant
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Implement a button to open a keyref
Post by alex_jitianu »
Hi,
You could use a button bound to a JSOperation, like this:
Best regards,
Alex
You could use a button bound to a JSOperation, like this:
Code: Select all
*[keyref]:before {
text-decoration-line : underline ;
content: oxy_action(
name, attr(keyref),
operation, 'ro.sync.ecss.extensions.commons.operations.JSOperation',
arg-script, oxy_concat('function doOperation(){ var url = Packages.ro.sync.ecss.dita.DITAAccess.resolveKeyRef(new java.net.URL("',
oxy_base-uri(),
'"),"',
attr(keyref)
'", false); Packages.ro.sync.exml.workspace.api.PluginWorkspaceProvider.getPluginWorkspace().open(url); }')
) !important
}
Alex
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service