Page 1 of 1

WSAuthorEditorPage - proper way to modify popup menu?

Posted: Wed Jul 16, 2014 1:37 pm
by Kit Strong
It appears that setPopUpMenuCustomizer() is now deprecated for WSAuthorEditorPage but I don't really see any good alternative way of customizing the popup menu.
So what's the best way to do this now keeping in mind that the customized menu options are dynamically generated for each resource based on some local metadata associated with that resource.

Re: WSAuthorEditorPage - proper way to modify popup menu?

Posted: Wed Jul 16, 2014 4:22 pm
by alex_jitianu
Hi Kit,

As far as I remember, setPopUpMenuCustomizer() was deprecated because there wasn't possible for multiple plugins to register their own customizer. That's why we deprecated it and added two more methods: addPopUpMenuCustomizer() and removePopUpMenuCustomizer(). Could you please give us more details about why this new API is not a viable alternative?

Best regards,
Alex

Re: WSAuthorEditorPage - proper way to modify popup menu?

Posted: Wed Jul 16, 2014 5:12 pm
by Kit Strong
D'oh, now I really feel foolish because addPopupMenuCustomizer is exactly what I meant to call. Not sure why I called the set method nor why I didn't notice the mistake.