WebHelp - File Refeence links open in target="_blank"
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 27
- Joined: Thu Dec 19, 2013 4:34 pm
WebHelp - File Refeence links open in target="_blank"
Hi,
I have a WebHelp project with Word, Excel and PDF files reference links. I'd like them all to open in target="_blank" when output to WebHelp (so as to avoid getting a blank page in the WebHelp); however, only the PDF file references seem to do this by default. Is there a way to force .docx and .xlsx to do this as well?
For example, I get this code when both document links areinserted the exact same way.
<a class="xref" href="file1.pdf" target="_blank">file 1</a>
<a class="xref" href="file2.docx">file2</a>
Thanks!
R.
I have a WebHelp project with Word, Excel and PDF files reference links. I'd like them all to open in target="_blank" when output to WebHelp (so as to avoid getting a blank page in the WebHelp); however, only the PDF file references seem to do this by default. Is there a way to force .docx and .xlsx to do this as well?
For example, I get this code when both document links areinserted the exact same way.
<a class="xref" href="file1.pdf" target="_blank">file 1</a>
<a class="xref" href="file2.docx">file2</a>
Thanks!
R.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: WebHelp - File Refeence links open in target="_blank"
Post by sorin_ristache »
Hi,
It is a DITA-OT issue. You have to declare your file types (.docx, .xlsx, etc) as binary resource file types in DITA-OT by extending the dita.resource.extensions DITA-OT point, by adding a custom plugin. The .pdf file type is already is declared as a binary file type in DITA-OT, this is why the target="_blank" attribute is added. As an example you can see how the .pdf extension is decalred in the file:
DITA-OT/plugins/org.dita.base/plugin.xml
It is a DITA-OT issue. You have to declare your file types (.docx, .xlsx, etc) as binary resource file types in DITA-OT by extending the dita.resource.extensions DITA-OT point, by adding a custom plugin. The .pdf file type is already is declared as a binary file type in DITA-OT, this is why the target="_blank" attribute is added. As an example you can see how the .pdf extension is decalred in the file:
DITA-OT/plugins/org.dita.base/plugin.xml
Regards,
Sorin
<oXygen/> XML Editor Support
Sorin
<oXygen/> XML Editor Support
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