Adding A New Method to Viewlet Manager?

How to Add A new Method to a Existing Viewlet Manager and its Template?

Shahkhan Sh via Plone Community wrote at 2024-2-8 09:31 +0000:

How to Add A new Method to a Existing Viewlet Manager and its Template?

Are you sure you want to change the viewlet manager
rather than adding a viewlet to it?

If I choose adding viewlet . how to arrange it in that viewlet manager

Shahkhan Sh via Plone Community wrote at 2024-2-8 10:13 +0000:

If I choose adding viewlet . how to arrange it in that viewlet manager

I am sure this is documented (but I will not search for you).

I remember a "@@manage_viewlets" view which allows to adjust
viewlets via the Web. viewlets via GenericSetup.

1 Like

ThankU @dieter

How can i insert "HELLO" viewlet between settings icon and username?

If you inspect with @@manage_viewlets, you'll see that part is already a viewlet. You've just to override its view and template using zcml:

https://5.docs.plone.org/develop/plone/views/more_view_examples.html#overriding-the-title

Instead of the Title viewlet, override the plone.personal_bar viewlet class to implement the method to get the portrait url and the template to display it as outlined here: