${baseFramework} in CSS oxy_url()

Post here questions and problems related to oXygen frameworks/document types.
HomeGoods
Posts: 96
Joined: Wed Feb 09, 2005 8:57 am

${baseFramework} in CSS oxy_url()

Post by HomeGoods »

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?
alex_jitianu
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
HomeGoods
Posts: 96
Joined: Wed Feb 09, 2005 8:57 am

Re: ${baseFramework} in CSS oxy_url()

Post by HomeGoods »

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.
alex_jitianu
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
HomeGoods
Posts: 96
Joined: Wed Feb 09, 2005 8:57 am

Re: ${baseFramework} in CSS oxy_url()

Post by HomeGoods »

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}.
alex_jitianu
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
HomeGoods
Posts: 96
Joined: Wed Feb 09, 2005 8:57 am

Re: ${baseFramework} in CSS oxy_url()

Post by HomeGoods »

Confirmed on 17.1 build 2015121117. Thanks for hearing us. :D
Post Reply