Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Overridding PersonalMenuEntry
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.
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
)
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?
Hello. Perhaps, you'll find this solution appropriate: https://liferay.dev/forums/-/message_boards/message/117258664#_com_liferay_message_boards_web_portlet_MBPortlet_message_117258664
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™