Customize Content Completion
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 47
- Joined: Thu Jun 19, 2014 3:55 pm
Re: Customize Content Completion
Hi,
we are using the Eclipse Oxygen Author in Version 15.2.
What would be the best approach, if I want to extend the content completion. The use case:
I want to create this structure:
So everytime, if the author choose a <h1> element, the content completion has to add a <p>-element. The problem is the <p>-elemnt is not required. Also I do not want to make it optional.
Best regards
Denis
we are using the Eclipse Oxygen Author in Version 15.2.
What would be the best approach, if I want to extend the content completion. The use case:
I want to create this structure:
Code: Select all
<h1> <p></p></h1>
Best regards
Denis
Denis Zygann
KGU Consulting GmbH
http://www.kgu-consulting.com
KGU Consulting GmbH
http://www.kgu-consulting.com
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Customize Content Completion
Post by alex_jitianu »
Hello Denis,
The easiest way would be to replace the default entries with author actions. If we were to take your sample as a starting point:
1. you must create an author action. THe action must use the operation ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation and the fragment to insert must be <h1> <p></p></h1>.
2. On the Content Completion page you must add the previously created action in the content completion (select the action in the Available Actions and put it in the Current Actions)
3. In the same Content completion page, remove the default action that adds a h1 element (the one that comes from the schema). To do that you must add an entry in the table Filter - Remove content completion items.
Best regards,
Alex
The easiest way would be to replace the default entries with author actions. If we were to take your sample as a starting point:
1. you must create an author action. THe action must use the operation ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation and the fragment to insert must be <h1> <p></p></h1>.
2. On the Content Completion page you must add the previously created action in the content completion (select the action in the Available Actions and put it in the Current Actions)
3. In the same Content completion page, remove the default action that adds a h1 element (the one that comes from the schema). To do that you must add an entry in the table Filter - Remove content completion items.
Best regards,
Alex
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