Specific rules in the folding/unfolding action (author mode)
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 52
- Joined: Thu Dec 15, 2011 7:56 pm
Specific rules in the folding/unfolding action (author mode)
Hi,
Concerning folding elements, you provide those actions :
Can we create (with a plugin for example) such actions with specific behavior ?
For example,
I have an XML tree like :
What can I do for creating a button that folds/unfolds all the elements A and D (in author mode).
(The rules concerning the folding/unfolding can be tricky, the key is to be able to control your unfolding action)
Thank you,
Vincent.
Concerning folding elements, you provide those actions :
- Close Other Folds (Ctrl+NumPad+/) - Folds all the elements except the current element.
- Collapse Child Folds (Ctrl+Decimal) - Folds the elements indented with one level inside the current element.
- Expand Child Folds (Ctrl+Equals)- Unfolds all child elements of the currently selected element.
- Expand All (Ctrl+NumPad+*) - Unfolds all elements in the current document.
- Toggle Fold - Toggles the state of the current fold.
Can we create (with a plugin for example) such actions with specific behavior ?
For example,
I have an XML tree like :
Code: Select all
<root>
<part1>
<elementA>text</elementA>
<elementB>text</elementB>
<elementC>text</elementC>
<elementD>text</elementD>
</part1>
<part2>
<elementA>text</elementA>
<elementB>text</elementB>
<elementC>text</elementC>
<elementD>text</elementD>
</part2>
</root>
(The rules concerning the folding/unfolding can be tricky, the key is to be able to control your unfolding action)
Thank you,
Vincent.
-
- Posts: 9448
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Specific rules in the folding/unfolding action (author mode)
Hi Vincent,
Could you elaborate a little bit on the use case? It would help me to see the bug picture.
From what I understand you have already declared in the CSS that the elementA and elementD tags are foldable.
You just need a way to fold/unfold nodes using our API instead of having the user click the fold icons, right?
We do not yet have API to fold/unfold specific elements. Should we try to add the API to fold/unfold a specific AuthorNode?
How about if you try to hide the node completely using the CSS "display:none" property?
Regards,
Radu
Could you elaborate a little bit on the use case? It would help me to see the bug picture.
From what I understand you have already declared in the CSS that the elementA and elementD tags are foldable.
You just need a way to fold/unfold nodes using our API instead of having the user click the fold icons, right?
We do not yet have API to fold/unfold specific elements. Should we try to add the API to fold/unfold a specific AuthorNode?
How about if you try to hide the node completely using the CSS "display:none" property?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 52
- Joined: Thu Dec 15, 2011 7:56 pm
Re: Specific rules in the folding/unfolding action (author mode)
Radu, Thank you for your answer.
We are aware that this is not so simple and we understand that it's not yet in the API. That's why, for this point, we are going to try to adapt our process with your existing functionality.
Having this feature would have brought more freedom, but it may be fine with another approach.
I'll let you know.
Vincent.
We are aware that this is not so simple and we understand that it's not yet in the API. That's why, for this point, we are going to try to adapt our process with your existing functionality.
Having this feature would have brought more freedom, but it may be fine with another approach.
I'll let you know.
Vincent.
-
- Posts: 9448
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Specific rules in the folding/unfolding action (author mode)
Hello Vincent,
We will try to add API for folding/unfolding elements and I'll update this thread when this happens.
Regards,
Radu
We will try to add API for folding/unfolding elements and I'll update this thread when this happens.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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