Newbie questions re: DITA-based frameworks
Post here questions and problems related to oXygen frameworks/document types.
Newbie questions re: DITA-based frameworks
Hello-
I have created a specialization of the <choicetable> element for which I need to write an authoring framework. Here is an example fragment:
<settingtable>
<setrow>
<setname/><setvalue/>
<setrow>
</settingtable>
What I would like to do is:
1. Add "dummy" text to the empty cells (the same way that 'cmd' appears in empty commands and 'title' appears in empty titles).
2. Allow users to just click the usual "Add row below" button in the toolbar to add more <setrow> elements that contain valid row markup. Right now, when I click the button, the new <setrow> contains only a <setname/> element -- I need <setname/> and <setvalue/>.
I assume that I need to edit CSS and create a new action for these two tasks. I appreciate any help. Thanks.
I have created a specialization of the <choicetable> element for which I need to write an authoring framework. Here is an example fragment:
<settingtable>
<setrow>
<setname/><setvalue/>
<setrow>
</settingtable>
What I would like to do is:
1. Add "dummy" text to the empty cells (the same way that 'cmd' appears in empty commands and 'title' appears in empty titles).
2. Allow users to just click the usual "Add row below" button in the toolbar to add more <setrow> elements that contain valid row markup. Right now, when I click the button, the new <setrow> contains only a <setname/> element -- I need <setname/> and <setvalue/>.
I assume that I need to edit CSS and create a new action for these two tasks. I appreciate any help. Thanks.
Re: Newbie questions re: DITA-based frameworks
Hi,
This blog post has some best practices about contributing your CSS customization in a way in which you can share it with others:
http://blog.oxygenxml.com/2016/10/custo ... iting.html
In the meantime you can extend the DITA framework configuration (you also need to extend the DITA framework for the (1) request) and create your own custom Author action to insert a row in such a table.
The custom action would be defined like this:
files/insertCustomRowAction.png
and then you could mount it on the menu, contextual menu or toolbar.
https://www.oxygenxml.com/doc/versions/ ... olbar.html
Regards,
Radu
You need a custom CSS selector. Something like this:1. Add "dummy" text to the empty cells (the same way that 'cmd' appears in empty commands and 'title' appears in empty titles).
Code: Select all
setname{
-oxy-placeholder-content:"emptyName";
}
http://blog.oxygenxml.com/2016/10/custo ... iting.html
I think we can improve the default Oxygen action for inserting a new row to properly work if the table already contains a row inside it. I will add an internal issue for this.2. Allow users to just click the usual "Add row below" button in the toolbar to add more <setrow> elements that contain valid row markup. Right now, when I click the button, the new <setrow> contains only a <setname/> element -- I need <setname/> and <setvalue/>.
In the meantime you can extend the DITA framework configuration (you also need to extend the DITA framework for the (1) request) and create your own custom Author action to insert a row in such a table.
The custom action would be defined like this:
files/insertCustomRowAction.png
and then you could mount it on the menu, contextual menu or toolbar.
https://www.oxygenxml.com/doc/versions/ ... olbar.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: Newbie questions re: DITA-based frameworks
Hi,
About my previous remark:
Regards,
Radu
About my previous remark:
Oxygen 19.0 should have a fix for this.I think we can improve the default Oxygen action for inserting a new row to properly work if the table already contains a row inside it.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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