RE: Overridding PersonalMenuEntry

Jan Tošovský, modified 6 Years ago. Liferay Master Posts: 576 Join Date: 7/22/10 Recent Posts
Is there any way to override default PersonalMenuEntry?
https://github.com/liferay/liferay-portal/blob/7.2.0-ga1/modules/apps/portal-workflow/portal-workflow-task-web/src/main/java/com/liferay/portal/workflow/task/web/internal/product/navigation/personal/menu/MyWorkflowTaskPersonalMenuEntry.java
I've tried to create my custom clone and set the service.ranking to a higher value, but this item is just duplicated, not overridden.
@Component(
        immediate = true,
        property = {
                "product.navigation.personal.menu.entry.order:Integer=500",
                "product.navigation.personal.menu.group:Integer=200",
                "service.ranking:Integer=100"
        },
        service = PersonalMenuEntry.class
)
thumbnail
Minhchau Dang, modified 6 Years ago. Liferay Master Posts: 598 Join Date: 10/22/07 Recent Posts
Jan Tošovský:

I've tried to create my custom clone and set the service.ranking to a higher value, but this item is just duplicated, not overridden.

Have you tried using the component blacklist to blacklist the original?
Dmitry Oshkalo, modified 6 Years ago. New Member Posts: 4 Join Date: 9/14/19 Recent Posts