Page 1 of 1

Create element with custom button

Posted: Mon Jul 29, 2013 6:18 pm
by cube
Dear all,

I'm new to oXygen, so please let me ask a beginners question. I looked at the shipped

Code: Select all

example. This is a very good example and I like the CSS style abilities. But I do not understand, how the

Code: Select all


Code: Select all

buttons work to add or remove a personal sheet. Could you please tell me, where I can find documentation relating to this topic?

Thanks for your support!

Re: Create element with custom button

Posted: Tue Jul 30, 2013 10:55 am
by alex_jitianu

The buttons are one of the built in form controls supported by Oxygen: ... ction.html ... ditor.html

A button binds itself to an author action and when the button is pressed the action is executed in the context of the element the button is added on. More on the author actions: ... us-toolbar ... ation.html

Referring to personal.xml sample file, if you go to Options->Preferences..., on the Document type associations options page you will notice a document type named Personal (Sample). Click Edit and in the configuration dialog select the Author then Actions tabs. You will notice a couple of defined author actions. If you go to the CSS tab you will see the CSS file in which the buttons are added. If you open it (it's location is {oxygenInstallDir}/frameworks/samples/css/personal.css}) you will see how the buttons are bounded to the author actions you've previously seen.

There is a video presentation available about the form control support in Oxygen:

as well as a registered webinar: ... ryone.html

Best regards,

Re: Create element with custom button

Posted: Tue Jul 30, 2013 12:31 pm
by cube
Hi Alex,

wow, thanks a lot for this detailled answer.

Thank you very, very much.

Best regards