Foren
hide Notification portlet
Tahir Noor Khaliq, geändert vor 8 Jahren.
hide Notification portlet
Junior Member Beiträge: 35 Beitrittsdatum: 05.02.15 Neueste Beiträge
How to hide Notification portlet from dockbar? using Hook or ext
David H Nebinger, geändert vor 8 Jahren.
RE: hide Notification portlet
Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
just undeploy it.
Tahir Noor Khaliq, geändert vor 8 Jahren.
RE: hide Notification portlet
Junior Member Beiträge: 35 Beitrittsdatum: 05.02.15 Neueste Beiträge
no other way, hook or ext @
David H Nebinger
David H Nebinger
David H Nebinger, geändert vor 8 Jahren.
RE: hide Notification portlet
Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
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.
Sushil Patidar, geändert vor 8 Jahren.
RE: hide Notification portlet
Expert Beiträge: 467 Beitrittsdatum: 31.10.11 Neueste Beiträge
Hi,
Other simple solution is set
'
in liferay-portlet.xml
Regards
Other simple solution is set
<include>false</include>
'
in liferay-portlet.xml
Regards
David H Nebinger, geändert vor 8 Jahren.
RE: hide Notification portlet
Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste BeiträgeSushil 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?
Tahir Noor Khaliq, geändert vor 8 Jahren.
RE: hide Notification portlet
Junior Member Beiträge: 35 Beitrittsdatum: 05.02.15 Neueste Beiträge
undeploy its Simple,, thanku @
David H Nebinger
David H Nebinger
Gaurav Jain, geändert vor 8 Jahren.
RE: hide Notification portlet
Regular Member Beiträge: 145 Beitrittsdatum: 31.01.11 Neueste Beiträge
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.
Rafik H, geändert vor 8 Jahren.
RE: hide Notification portlet
New Member Beiträge: 3 Beitrittsdatum: 03.06.13 Neueste Beiträge
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.
David H Nebinger, geändert vor 8 Jahren.
RE: hide Notification portlet
Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste BeiträgeRafik 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...