Page 1 of 1

${baseFramework} in CSS oxy_url()

Posted: Tue Jul 07, 2015 11:41 pm
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?

Re: ${baseFramework} in CSS oxy_url()

Posted: Wed Jul 08, 2015 9:52 am
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

Re: ${baseFramework} in CSS oxy_url()

Posted: Wed Jul 08, 2015 12:30 pm
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.

Re: ${baseFramework} in CSS oxy_url()

Posted: Thu Jul 09, 2015 9:26 am
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

Re: ${baseFramework} in CSS oxy_url()

Posted: Thu Jul 09, 2015 12:22 pm
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}.

Re: ${baseFramework} in CSS oxy_url()

Posted: Tue Jan 12, 2016 12:11 pm
by alex_jitianu
Hello,

In Oxygen version 17.1 the oxy_url() function will resolve ${baseFramework} too. Hope it helps!

Best regards,
Alex

Re: ${baseFramework} in CSS oxy_url()

Posted: Sun Jan 24, 2016 6:03 am
by HomeGoods
Confirmed on 17.1 build 2015121117. Thanks for hearing us. :D