留言板

hide Notification portlet

thumbnail
Tahir Noor Khaliq,修改在8 年前。

hide Notification portlet

Junior Member 帖子: 35 加入日期: 15-2-5 最近的帖子
How to hide Notification portlet from dockbar? using Hook or ext
thumbnail
David H Nebinger,修改在8 年前。

RE: hide Notification portlet

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
just undeploy it.
thumbnail
Tahir Noor Khaliq,修改在8 年前。

RE: hide Notification portlet

Junior Member 帖子: 35 加入日期: 15-2-5 最近的帖子
no other way, hook or ext @
David H Nebinger
thumbnail
David H Nebinger,修改在8 年前。

RE: hide Notification portlet

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
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,修改在8 年前。

RE: hide Notification portlet

Expert 帖子: 467 加入日期: 11-10-31 最近的帖子
Hi,

Other simple solution is set

<include>false</include>

'
in liferay-portlet.xml

Regards
thumbnail
David H Nebinger,修改在8 年前。

RE: hide Notification portlet

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
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,修改在8 年前。

RE: hide Notification portlet

Junior Member 帖子: 35 加入日期: 15-2-5 最近的帖子
undeploy its Simple,, thanku @
David H Nebinger
thumbnail
Gaurav Jain,修改在8 年前。

RE: hide Notification portlet

Regular Member 帖子: 145 加入日期: 11-1-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.
thumbnail
Rafik H,修改在8 年前。

RE: hide Notification portlet

New Member 帖子: 3 加入日期: 13-6-3 最近的帖子
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,修改在8 年前。

RE: hide Notification portlet

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
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...