Richer formatting within Short Description
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 118
- Joined: Mon Apr 19, 2010 5:33 pm
Richer formatting within Short Description
I am in need of creating a section within the home page (index.html) of the webhelp transformation to house top FAQs. I was envisioning something like a large tile that works similar to the Side TOC nav tile.
So, if I create a new top-level topic (Top FAQs) is there a way to create a richer formatting within its short description that has xrefs to content in the Top FAQs page (or other page)? It would need to be able to have links and line breaks.
I've tried using ph elements to get xrefs in the topic, but they do not transform to hyperlinks during transformation.
any thoughts/guidance?
So, if I create a new top-level topic (Top FAQs) is there a way to create a richer formatting within its short description that has xrefs to content in the Top FAQs page (or other page)? It would need to be able to have links and line breaks.
I've tried using ph elements to get xrefs in the topic, but they do not transform to hyperlinks during transformation.
any thoughts/guidance?
-
- Posts: 222
- Joined: Tue Jul 01, 2014 11:48 am
Re: Richer formatting within Short Description
Post by bogdan_cercelaru »
Hello,
You can add <xref /> elements in the DITA topics short description to add links to specific section or page.
Unfortunately, there is no line break element or equivalent in DITA. As a workaround you could use an empty <ph /> element with a custom @outputclass attribute and a custom CSS for styling the output.
For example, in the short description of your topic, insert the where you want to have a line break. In this case, the custom CSS should be: Here you can find more information about customizing WebHelp output using CSS: CSS Styling to Customize WebHelp Output
Regards,
Bogdan
You can add <xref /> elements in the DITA topics short description to add links to specific section or page.
Unfortunately, there is no line break element or equivalent in DITA. As a workaround you could use an empty <ph /> element with a custom @outputclass attribute and a custom CSS for styling the output.
For example, in the short description of your topic, insert the
Code: Select all
<ph outputclass="linebreak"/>
Code: Select all
.linebreak {
display: block;
}
Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 118
- Joined: Mon Apr 19, 2010 5:33 pm
Re: Richer formatting within Short Description
hi Bogdan
Good info - thanks!
I had already tried adding an xref to the shortdesc.
Somewhere during the transformation, the xref is stripped out.
Any idea where that is happening and how to prevent it?
Good info - thanks!
I had already tried adding an xref to the shortdesc.
Code: Select all
<shortdesc>
<xref href="#concept_vsh_1fm_kcb/div_gyg_4gm_kcb" format="dita">How do I change my password?</xref>
</shortdesc>
Code: Select all
<div class=" wh_tile_shortdesc ">How do I change my password?</div>
-
- Posts: 222
- Joined: Tue Jul 01, 2014 11:48 am
Re: Richer formatting within Short Description
Post by bogdan_cercelaru »
Hello,
I've tested using Oxygen version 19.1 build 2017121318 and I can confirm this behavior.
I've just registered an issue in our internal bug tracking system to be analyzed.
Regards,
Bogdan
I've tested using Oxygen version 19.1 build 2017121318 and I can confirm this behavior.
I've just registered an issue in our internal bug tracking system to be analyzed.
Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: Richer formatting within Short Description
Hi kmank,
The issue was logged, but the tracking system is internal, not public, so you can not actually see the issue.
However, for further discussions, you should mention "WH-1668", as this our internal issue reference.
Regards,
Costin
The issue was logged, but the tracking system is internal, not public, so you can not actually see the issue.
However, for further discussions, you should mention "WH-1668", as this our internal issue reference.
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author 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)
- ↳ 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