问题
I want to add custom user notifications in liferay 7. For this If I were using liferay 6.2 I would have to make entries like user-notification-definitions and user-notification-handler-class in liferay-portlet.xml . But in liferay I want to ask where to put these entries. Please help....thanx in advance..
回答1:
You can also find similar properties here :
https://dev.liferay.com/develop/reference/-/knowledge_base/7-0/portlet-descriptor-to-osgi-service-property-map
According to above link, user-notification-definitions is not supported though OSGI props.
Thanks,
Ankit
回答2:
You can still use this file in legacy portlets (packaged in WAR files).
For OSGi Components, the settings from that file end up in the properties for your component. Those properties starting with javax.portlet
mirror the settings from portlet.xml
, those starting with com.liferay
mirror those that are documented for liferay-portlet.xml
来源:https://stackoverflow.com/questions/40907142/what-is-the-equivalent-file-of-liferay-portlet-xml-in-liferay-7