Page 1 of 1

Use Oxygen action in CSS

Posted: Fri Mar 18, 2016 10:48 am
by xephon
Hi,

I'd like to use an Oxygen action of my framework in author mode (CSS/LESS). I can add an action to the menu or the context menu. Can I use it the same way in CSS/LESS, or do I have do redefine it there?

Thanks

Re: Use Oxygen action in CSS

Posted: Fri Mar 18, 2016 3:56 pm
by alex_jitianu
Hi,

If you've defined an author action in the framework, then you can bind it in the document through the CSS like this:

Code: Select all

p:before {
content: oxy_button(actionID, 'my.action.id.defined.inframework')
}
Please let me know if I didn't actually understood the situation and you had something else in mind.


Best regards,
Alex

Re: Use Oxygen action in CSS

Posted: Fri Mar 18, 2016 5:44 pm
by xephon
Hi Alex,

thanks, that was exactly what I was looking for.

Greetings,
Stefan