掲示板
hide Notification portlet
8年前 に Tahir Noor Khaliq によって更新されました。
hide Notification portlet
Junior Member 投稿: 35 参加年月日: 15/02/05 最新の投稿
How to hide Notification portlet from dockbar? using Hook or ext
8年前 に David H Nebinger によって更新されました。
RE: hide Notification portlet
Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿
just undeploy it.
8年前 に Tahir Noor Khaliq によって更新されました。
RE: hide Notification portlet
Junior Member 投稿: 35 参加年月日: 15/02/05 最新の投稿
no other way, hook or ext @
David H Nebinger
David H Nebinger
8年前 に David H Nebinger によって更新されました。
RE: hide Notification portlet
Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿
If you don't want it, just undeploy it. You haven't provided any other requirements, so it comes down to undeploying to get rid of it. Anything else would be a lot of work to apply this simple solution.
8年前 に Sushil Patidar によって更新されました。
RE: hide Notification portlet
Expert 投稿: 467 参加年月日: 11/10/31 最新の投稿
Hi,
Other simple solution is set
'
in liferay-portlet.xml
Regards
Other simple solution is set
<include>false</include>
'
in liferay-portlet.xml
Regards
8年前 に David H Nebinger によって更新されました。
RE: hide Notification portlet
Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿Sushil Patidar:
Other simple solution is set<include>false</include>
'
in liferay-portlet.xml
Simple? Simple how? The basic rules state you never edit these files directly because that impedes installing updates or upgrades.
Since this would not be in ROOT, you can't do a hook or EXT plugin to change this value. It's a separate war, so that means you'd have to be talking about using the "plugin extending a plugin" concept to insert this one line into liferay-portlet.xml.
So this doesn't sound simple to me at all. So how does it make it simple?
Oh, I see, it's simple for you because you don't follow these rules. Is it because you don't know about them or because you don't care about them?
8年前 に Tahir Noor Khaliq によって更新されました。
RE: hide Notification portlet
Junior Member 投稿: 35 参加年月日: 15/02/05 最新の投稿
undeploy its Simple,, thanku @
David H Nebinger
David H Nebinger
8年前 に Gaurav Jain によって更新されました。
RE: hide Notification portlet
Regular Member 投稿: 145 参加年月日: 11/01/31 最新の投稿
Though it seems like you already managed it based on David's suggestion.
But if there is any reason you still want to have notification portlet but just don't want to show it in your custom theme, then css hide trick can also do.
But if there is any reason you still want to have notification portlet but just don't want to show it in your custom theme, then css hide trick can also do.
Hi all,
In order to disable dockbar notifications, you have to :
1- Create portlet-ext.properties under your $Liferay_HOME/tomcat-version/webapps/notifications-portlet/WEB-INF/classes.
2- Edit portlet-ext.properties file then add the following line:
3- Restart your portal.
In order to disable dockbar notifications, you have to :
1- Create portlet-ext.properties under your $Liferay_HOME/tomcat-version/webapps/notifications-portlet/WEB-INF/classes.
2- Edit portlet-ext.properties file then add the following line:
user.notifications.dockbar.display.enabled=false
3- Restart your portal.
8年前 に David H Nebinger によって更新されました。
RE: hide Notification portlet
Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿Rafik H:
1- Create portlet-ext.properties under your $Liferay_HOME/tomcat-version/webapps/notifications-portlet/WEB-INF/classes.
This is actually bad practice. Instead you can create portlet-ext.properties in the same directory as portal-ext.properties and it will be processed. Ensures the file is not lost when you do an undeploy/redeploy cycle.
It should have the necessary "include-and-override=portlet-ext.properties" line in the current file...