Tahia wrote: > > this doesn't work: > > ---------------------------- > <button toolTip="Add section" icon="../icons2/section_menu.gif"> > <menu> > > <item label="test (dans quiz)" command="insert" > parameter="after[implicitElement] #template(test, simple)" > /> > </menu> > </button> > ---------------------------- > It is because of using the element <item> with #template.... > I saw only examples with simple elements but not with templates when > using <menu>
Of course, you can use named element templates in tool bar buttons and menus. If you replace "#template(test, simple)" by "#template(test,simple)", I think it will work. Note that I have simply removed the space after the ','. And we'll make the parser of command parameters smarter in order to avoid this kind of problem to our power users.

