Foros de discusión
hide Notification portlet
Tahir Noor Khaliq, modificado hace 8 años.
hide Notification portlet
Junior Member Mensajes: 35 Fecha de incorporación: 5/02/15 Mensajes recientes
How to hide Notification portlet from dockbar? using Hook or ext
David H Nebinger, modificado hace 8 años.
RE: hide Notification portlet
Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
just undeploy it.
Tahir Noor Khaliq, modificado hace 8 años.
RE: hide Notification portlet
Junior Member Mensajes: 35 Fecha de incorporación: 5/02/15 Mensajes recientes
no other way, hook or ext @
David H Nebinger
David H Nebinger
David H Nebinger, modificado hace 8 años.
RE: hide Notification portlet
Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
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, modificado hace 8 años.
RE: hide Notification portlet
Expert Mensajes: 467 Fecha de incorporación: 31/10/11 Mensajes recientes
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, modificado hace 8 años.
RE: hide Notification portlet
Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientesSushil 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, modificado hace 8 años.
RE: hide Notification portlet
Junior Member Mensajes: 35 Fecha de incorporación: 5/02/15 Mensajes recientes
undeploy its Simple,, thanku @
David H Nebinger
David H Nebinger
Gaurav Jain, modificado hace 8 años.
RE: hide Notification portlet
Regular Member Mensajes: 145 Fecha de incorporación: 31/01/11 Mensajes recientes
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, modificado hace 8 años.
RE: hide Notification portlet
New Member Mensajes: 3 Fecha de incorporación: 3/06/13 Mensajes recientes
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, modificado hace 8 años.
RE: hide Notification portlet
Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientesRafik 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...