Third Party Contributions > API Based Plugins

Container names Elastic Skin

(1/1)

blackbird9223:
Hey,

I hope this is the right place to ask, I just started working on my first plugin and I am struggling with the container names.

When I add something to the 'toolbar' container with
--- Code: ---rcmail.add_element(button, 'toolbar');
--- End code ---
nothing shows up.

Checking the source code of the Elastic skin I realized that for example the mail-menu.html creates a toolbar container referring to an element with the id 'mailtoolbar'.

--- Code: ---<roundcube:container name="toolbar" id="mailtoolbar" />
--- End code ---
If I open up Roundcube in my browser there is no 'mailtoolbar' element, the menu is called 'toolbar-menu'.

So changing the container names to 'toolbar-menu' like this

--- Code: ---<roundcube:container name="toolbar" id="toolbar-menu" />
--- End code ---
makes the button appear. Also the workaround with jQuery appendTo('#toolbar-menu') works.

So I am wondering are the container names wrong in the skin template or am I using them the wrong way!?

Navigation

[0] Message Index

Go to full version