Page 1 of 1

editing definition list (dl) in a table-like way in Author Mode?

Posted: Wed Oct 05, 2016 1:23 pm
by katriel
Hi All,
For a project, we will be rendering the definition list element (dl) as a table.

We want to allow the authors (who are used to editing the content in Excel) to create and edit content for the definition list in a table-like way.
The authors will be working in Author Mode.

Bottom line: We want the semantic benefit of definition list, without losing the columns/rows paradigm that the authors are used to.

Can you point me to sample code or examples?
Much thanks,
Katriel
MethodM.com

Re: editing definition list (dl) in a table-like way in Author Mode?

Posted: Wed Oct 05, 2016 3:19 pm
by Radu
Hi Katriel,

Oxygen uses CSS to render DITA XML content in the Author visual editing mode.
So you would need to customize the CSSs used for editing DITA to contain the following CSS selectors:

Code: Select all

dl{
display:table !important;
}

dlentry{
display:table-row !important;
}

dt, dd {
display:table-cell !important;
border: 1px solid black;
padding: 2px;
}
Besides modifying the existing CSSs one way to customize the CSSs is to add an alternate CSS:

https://www.oxygenxml.com/doc/versions/ ... t-CSS.html

Regards,
Radu