Insert Content Reference improvements
Are you missing a feature? Request its implementation here.
-
- Posts: 84
- Joined: Tue Oct 11, 2005 9:17 am
- Location: Helsinki, Finland
- Contact:
Insert Content Reference improvements
Oxygen 10.0, OS X 10.5.5 and, Java 1.6.
1. Insert Content Reference is only available on Author mode. Would it be possible to add it also into Editor mode?
2. Insert Content Reference dialog doesn't remember the last file that was used. In most cases I use the same source file. Could Insert Content Reference dialog remember the last opened conref source file?
3. The default preview for conrefs is:
Edit referenced content
[conref content]
This works well for e.g. paragraphs, but if you conref inline elements, the output is not particularly good. For example, conreffed uicontrol element (with inline elements visible):
To access your home page, select
Edit referenced content
<uicontrol>Home</uicontrol>
.
Could the preview for conref be a single inline icon with a tooltip, this would allow the preview for the above be something like:
To access your home page, select
<uicontrol>Home</uicontrol>.
Where the anchor icon should be icon for conref.
4. Ignore conref element content. Right now if you have content in you conref element, it gets displayed above the conref anchor. The conref content should be ignored, as the actual content is retrieved from the conref source document. (Some CMS' fill in the conref contents whenever a topic is checked out, as not all XML editors have DITA support.)
1. Insert Content Reference is only available on Author mode. Would it be possible to add it also into Editor mode?
2. Insert Content Reference dialog doesn't remember the last file that was used. In most cases I use the same source file. Could Insert Content Reference dialog remember the last opened conref source file?
3. The default preview for conrefs is:

[conref content]
This works well for e.g. paragraphs, but if you conref inline elements, the output is not particularly good. For example, conreffed uicontrol element (with inline elements visible):
To access your home page, select

<uicontrol>Home</uicontrol>
.
Could the preview for conref be a single inline icon with a tooltip, this would allow the preview for the above be something like:
To access your home page, select

Where the anchor icon should be icon for conref.
4. Ignore conref element content. Right now if you have content in you conref element, it gets displayed above the conref anchor. The conref content should be ignored, as the actual content is retrieved from the conref source document. (Some CMS' fill in the conref contents whenever a topic is checked out, as not all XML editors have DITA support.)
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Insert Content Reference improvements
Hi Jarno,
Thank you for the feedback.
See some answers below:
You can open the OXYGEN_INSTALL_DIR/frameworks/dita/css_classed/dita.css CSS file and make the following modifications:
1) Add a namespace declaration after all the imports:
2) At the end of the CSS file add the following rules:
Regards,
Radu
Thank you for the feedback.
See some answers below:
Indeed we have a lack of consistency, you have a lot of actions available in the Author mode but those actions cannot be used in the Text/Editor mode. We already know about this and will try to come up with an improvement in a future version.1. Insert Content Reference is only available on Author mode. Would it be possible to add it also into Editor mode?
Hi, I see your usecase, we'll try to do this by 10.1. You can also open the last URL by selecting it from the combo box.2. Insert Content Reference dialog doesn't remember the last file that was used. In most cases I use the same source file. Could Insert Content Reference dialog remember the last opened conref source file?
The link that you see is done using styles from an Oxygen default CSS file called "authorDefaults.css" and located in the oxygen.jar library.3. The default preview for conrefs is:.........Could the preview for conref be a single inline icon with a tooltip?
You can open the OXYGEN_INSTALL_DIR/frameworks/dita/css_classed/dita.css CSS file and make the following modifications:
1) Add a namespace declaration after all the imports:
Code: Select all
@namespace oxy url('http://www.oxygenxml.com/extensions/author');
Code: Select all
oxy|reference:before {
display: inline !important;
content: "<CONREF>" !important;
}
oxy|reference {
display:morph !important;
}
You can hide the real content by adding the following rules at the end of the same CSS file as above:4) Ignore conref element content.
Code: Select all
*[conref] > * {
display:none;
}
*[conref] > *[id] {
display:morph;
}
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 11
- Joined: Sat Jul 17, 2010 7:30 pm
Re: Insert Content Reference improvements
Always prefer recycling to starting a new thread
Can the same type of edits you describe above be used to change the default behaviour of the Insert Topic Reference dialog box?
We would like 'Attributes/Collection Type' to be prepopulated with 'Sequence' to ensure someone doesn't forget to set it and it breaks our next/previous links flow in the webhelp.
Thanks

Can the same type of edits you describe above be used to change the default behaviour of the Insert Topic Reference dialog box?
We would like 'Attributes/Collection Type' to be prepopulated with 'Sequence' to ensure someone doesn't forget to set it and it breaks our next/previous links flow in the webhelp.
Thanks
-
- Posts: 19
- Joined: Tue Jan 29, 2013 10:26 am
Re: Insert Content Reference improvements
hi,
As for ignore conref element content. Are there any new solutions in version 14.1?
The fact is that when we using the proposed solution, we can hide context only of child elements, if these elements do not have ID. Can we completely hide the contents of the node?
Code: Select all
4) Ignore conref element content.
You can hide the real content by adding the following rules at the end of the same CSS file as above:
CODE: SELECT ALL
*[conref] > * {
display:none;
}
*[conref] > *[id] {
display:morph;
}
The fact is that when we using the proposed solution, we can hide context only of child elements, if these elements do not have ID. Can we completely hide the contents of the node?
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Insert Content Reference improvements
Hi,
A slightly better approach which would also hide the text:
1) Declare a namespace after all imports are made in the main CSS:
2) Add 4 selectors to the end of the CSS:
Out of curiosity, why do you have text content in the element which makes the conref?
Regards,
Radu
A slightly better approach which would also hide the text:
1) Declare a namespace after all imports are made in the main CSS:
Code: Select all
@namespace oxy "http://www.oxygenxml.com/extensions/author";
Code: Select all
*[conref]{
visibility:-oxy-collapse-text;
}
*[conref] oxy|reference{
visibility:visible;
}
*[conref] > * {
display:none;
}
*[conref] > *[id] {
display:-oxy-morph;
}
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)
- ↳ 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