[oXygen-sdk] Custom editor variables in CSS

Nathan vrveerar at gmail.com
Mon May 12 19:32:19 CDT 2014


Hi Alex,
   Here is the use case scenario I am targeting:

In the CSS, I have

*[class~="topic/image"][href]{
    content:oxy_url('${frameworkDir}', '../../../../../',
'app/main/core/sfdc/htdocs/img/', attr(href));
}

Here, the built-in variable "frameworkDir" works fine. The above path is
valid when the file is in the "main" branch.
When the input xml file is in another branch (say "/patch/21"), I would
like to change the "app/main/core...." to "app/patch/21/core...".
My first idea was to have a custom variable defined (say $BRANCH) which
would be set to "/main" by default and could be reset to "/patch/21" by the
user when they change the branch.

However, while the built-in variable was accepted, the custom variable is
not accepted here. Also, with respect to creating pseudo classes, it would
be a maintenance issue since I would need to put in every release number
(since theoretically XML files from any release could be opened) in the CSS
and also the CSS would need to be updated after every release.

Could you provide some alternatives?

Thanks,
Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-sdk/attachments/20140512/748e72f1/attachment.html>


More information about the oXygen-sdk mailing list