${baseFramework} in CSS oxy_url()

Post here questions and problems related to oXygen frameworks/document types.
HomeGoods
Posts: 86

${baseFramework} in CSS oxy_url()

Tue Jul 07, 2015 11:41 pm

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: 604

Re: ${baseFramework} in CSS oxy_url()

Wed Jul 08, 2015 9:52 am

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: 86

Re: ${baseFramework} in CSS oxy_url()

Wed Jul 08, 2015 12:30 pm

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: 604

Re: ${baseFramework} in CSS oxy_url()

Thu Jul 09, 2015 9:26 am

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: 86

Re: ${baseFramework} in CSS oxy_url()

Thu Jul 09, 2015 12:22 pm

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: 604

Re: ${baseFramework} in CSS oxy_url()

Tue Jan 12, 2016 12:11 pm

Hello,

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

Best regards,
Alex
HomeGoods
Posts: 86

Re: ${baseFramework} in CSS oxy_url()

Sun Jan 24, 2016 6:03 am

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

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: Google [Bot] and 0 guests