${baseFramework} in CSS oxy_url()
Post here questions and problems related to oXygen frameworks/document types.
${baseFramework} in CSS oxy_url()
The ability to extend the base document type is an awesome feature.
In an Author CSS of the extension framework, I would like to refer to a file in its base framework.
However, oxy_url( "${baseFramework}/", "something" ) does not resolve the variable. Is it a syntax error? Or the feature is missing?
In an Author CSS of the extension framework, I would like to refer to a file in its base framework.
However, oxy_url( "${baseFramework}/", "something" ) does not resolve the variable. Is it a syntax error? Or the feature is missing?
-
- Posts: 1009
- Joined: Wed Nov 16, 2005 11:11 am
Re: ${baseFramework} in CSS oxy_url()
Post by alex_jitianu »
Hello,
${baseFramework} is indeed not resolved. I guess is just something we've overlooked. I'll add a feature request for it. Meanwhile, can you give me more insight on the actual use case. Are you referring an icon from the base framework location?
Best regards,
Alex
${baseFramework} is indeed not resolved. I guess is just something we've overlooked. I'll add a feature request for it. Meanwhile, can you give me more insight on the actual use case. Are you referring an icon from the base framework location?
Best regards,
Alex
Re: ${baseFramework} in CSS oxy_url()
Yes, icons. More specifically, trying a kind of *[class~='topic/note']::before(2) { content: oxy_url("${baseFramework}/", "img/note.png"); }.
Since I'm extending the base framework, it would be more natural to look up the base files than to duplicate them.
Since I'm extending the base framework, it would be more natural to look up the base files than to duplicate them.
-
- Posts: 1009
- Joined: Wed Nov 16, 2005 11:11 am
Re: ${baseFramework} in CSS oxy_url()
Post by alex_jitianu »
Hello,
The icons are not exactly API so from version to version they might suffer some minor changes. For example, at some point we change the format from GIF to PNG. As a result, it might be wiser to have a copy of the icons you need in the extended framework. I will still investigate the ${baseFramework} support.
Best regards,
Alex
The icons are not exactly API so from version to version they might suffer some minor changes. For example, at some point we change the format from GIF to PNG. As a result, it might be wiser to have a copy of the icons you need in the extended framework. I will still investigate the ${baseFramework} support.
Best regards,
Alex
Re: ${baseFramework} in CSS oxy_url()
That's right. But since I'm extending (not branching) the base framework, I'll want to follow minor changes rather than to keep a snapshot at some point.
In the given example (the format changed from GIF to PNG), I would rather like to notice the broken icon links immediately than be with GIF (possibly of outdated design in limited colors) for some time and notice the change later (if I ever notice).
So it is still appreciated if CSS could resolve ${baseFramework}.
In the given example (the format changed from GIF to PNG), I would rather like to notice the broken icon links immediately than be with GIF (possibly of outdated design in limited colors) for some time and notice the change later (if I ever notice).
So it is still appreciated if CSS could resolve ${baseFramework}.
-
- Posts: 1009
- Joined: Wed Nov 16, 2005 11:11 am
Re: ${baseFramework} in CSS oxy_url()
Post by alex_jitianu »
Hello,
In Oxygen version 17.1 the oxy_url() function will resolve ${baseFramework} too. Hope it helps!
Best regards,
Alex
In Oxygen version 17.1 the oxy_url() function will resolve ${baseFramework} too. Hope it helps!
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