Foros de discusión

hide Notification portlet

thumbnail
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
thumbnail
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.
thumbnail
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
thumbnail
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.
thumbnail
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

<include>false</include>

'
in liferay-portlet.xml

Regards
thumbnail
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
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?
thumbnail
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
thumbnail
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.
thumbnail
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:

    user.notifications.dockbar.display.enabled=false

3- Restart your portal.
thumbnail
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
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...