WSAuthorEditorPage - proper way to modify popup menu?

Post here questions and problems related to oXygen frameworks/document types.
Kit Strong
Posts: 13
Joined: Mon Oct 07, 2013 7:19 pm

WSAuthorEditorPage - proper way to modify popup menu?

Post 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.
alex_jitianu
Posts: 1008
Joined: Wed Nov 16, 2005 11:11 am

Re: WSAuthorEditorPage - proper way to modify popup menu?

Post 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
Kit Strong
Posts: 13
Joined: Mon Oct 07, 2013 7:19 pm

Re: WSAuthorEditorPage - proper way to modify popup menu?

Post 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.
Post Reply