Page 1 of 1

Author view customisation -oxy-placeholder-content and i18n

Posted: Tue Nov 14, 2017 12:22 pm
by bwbohl
I configured a custom framework and customised the corresponding author view to show the data as a table. As I have some element that initially get inserted empty (rendered as empty cells) and the schema requires child elements that will be inserted by the users I would like to visualise this error more prominently in the table.

My idea was to use the

Code: Select all

-oxy-placeholder-content:"SOMEVALUE";


This works fine as long as I do not want to pull a i18n value from the translation.xml. When I use internatinalization, e.g.:

Code: Select all

-oxy-placeholder-content:"${i18n(bazga.kb.error.empty.placeholder)} ";


the resulting output is "${i18n(bazga.kb.error.empty.placeholder)}" though. Restarting oXygen XML Editor didn't bring up any change. I'm using oXygen 18.1 on macOS Sierra 10.12.6

Any ideas what's going wrong?

Re: Author view customisation -oxy-placeholder-content and i18n

Posted: Tue Nov 14, 2017 3:15 pm
by Radu
Hi,

Indeed the i18n editor variable did not properly expand in the -oxy-placeholder-content in Oxygen 18.1 and older.
We made it work in Oxygen 19.0 (and newer). So you should consider upgrading the used Oxygen installation.
Or you can try to avoid using the placeholder-content property and instead do something like:

Code: Select all

p:empty{
    content:"${i18n(subscript_description)}";
    background-color:gray;
}


because the i18n editor variable was properly expanded in static "content" properties even in 18.1.

Regards,
Radu

Re: Author view customisation -oxy-placeholder-content and i18n

Posted: Tue Nov 21, 2017 12:34 pm
by bwbohl
This is just a great alternative that I wasn't aware of!
Always great to learn some standard CSS on the fly!!

Please excuse my late reply, other issues of my custom framework had me more distracted ;-)