Adding placeholder content
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 16
- Joined: Sat May 30, 2015 2:18 am
Adding placeholder content
I have two questions:
Is there a way to add placeholder text in Author view? So far, I've only been able to add it in Text view using the "<?oxy-placeholder content="XYZ"?> format.
Can we add placeholders for text in the middle of a sentence? For example, consider a standard phrase like "Getting started with <application=name" where the writer must provide the actual name. Can the <application-name> text be configured as a placeholder?
Is there a way to add placeholder text in Author view? So far, I've only been able to add it in Text view using the "<?oxy-placeholder content="XYZ"?> format.
Can we add placeholders for text in the middle of a sentence? For example, consider a standard phrase like "Getting started with <application=name" where the writer must provide the actual name. Can the <application-name> text be configured as a placeholder?
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Adding placeholder content
Post by alex_jitianu »
Hello,
Do you want these placeholders to be inserted on user interaction? For example, when he is invoking an action on the toolbar? If that's the case then there are some possibilities:
1. you can configure the action and put oxy-placeholder PIs in its empty elements.
2. you can configure the action and put $ask editor variables (please note that the user will be presented with a dialog in which he has to give the value).
3. If the placeholders are added from the CSS then empty elements will automatically present the labels (assuming that the CSS selectors match those empty elements)
If this phrase comes from an action then this action can either insert a fragment like the one above or can opt to use the ${ask} to get the variable content (and there is no need for an anchor element).
Please let me know if you had something different in mind or if my answers clarify things.
Best regards,
Alex
When building the template you can insert placeholders for the existing elements through oxy-placeholder processing instructions. Another way to add placeholders is through CSS.Is there a way to add placeholder text in Author view? So far, I've only been able to add it in Text view using the "<?oxy-placeholder content="XYZ"?> format.
Do you want these placeholders to be inserted on user interaction? For example, when he is invoking an action on the toolbar? If that's the case then there are some possibilities:
1. you can configure the action and put oxy-placeholder PIs in its empty elements.
2. you can configure the action and put $ask editor variables (please note that the user will be presented with a dialog in which he has to give the value).
3. If the placeholders are added from the CSS then empty elements will automatically present the labels (assuming that the CSS selectors match those empty elements)
They can, but there are some aspects to consider. Placeholders are presented only when an element is empty. This means that you must insert an anchor element inside that phrase:Can we add placeholders for text in the middle of a sentence? For example, consider a standard phrase like "Getting started with <application=name" where the writer must provide the actual name. Can the <application-name> text be configured as a placeholder?
Code: Select all
Getting started with <ph><?oxy-placeholder content="Application name"?></ph>
Please let me know if you had something different in mind or if my answers clarify things.
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