留言板

Hide "My Pages", "My Workflow Tasks" and "My Submissions"

Morad Ahmad,修改在9 年前。

Hide "My Pages", "My Workflow Tasks" and "My Submissions"

Junior Member 帖子: 71 加入日期: 10-6-16 最近的帖子
Hello,
to configure the my account jsp I used the following properties in portal-ext.properties:

users.form.my.account.main=details,password
users.form.my.account.identification=addresses,phone-numbers,additional-email-addresses,websites
users.form.my.account.miscellaneous=display-settings,custom-fields

This works will.

Now I want to hide the additional 3 Tabs in the mask: "My Pages", "My Workflow Tasks" and "My Submissions". I can't find which jsp I have to overwrite
to achieve that? "edit_user.jsp" dosn't contain the code for these parts.... Or are there even properties for it?

Thanks,
Morad.
thumbnail
Pankaj Kathiriya,修改在9 年前。

RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"

Liferay Master 帖子: 722 加入日期: 10-8-5 最近的帖子
AFAIK there is no any configuration available.

You may override jsp "html\portlet\control_panel_menu\view.jsp" to filter those portlets using plugin-hook.
Morad Ahmad,修改在9 年前。

RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"

Junior Member 帖子: 71 加入日期: 10-6-16 最近的帖子
Thank you,

I solved it throw overwriting the jsp "/portal/layout/view/control_panel_nav_main.jspf":

<%
...

// Meine Seiten, Meine Workflowaufgaben, Meine Einsendungen für Benutzer nicht anzeigen:
boolean showPortletLinkToUser = true;
if("my".equals(portletControlPanelEntryCategory) &&
PortletKeys.MY_PAGES.equals(curPortletId) ||
PortletKeys.MY_WORKFLOW_TASKS.equals(curPortletId) ||
PortletKeys.MY_WORKFLOW_INSTANCES.equals(curPortletId)) {

showPortletLinkToUser = false;

}

%>

<c:if test="<%= showPortletLinkToUser %>">
<aui:nav-item anchorId='<%= "controlPanelSubNav" + curPortletId + "Link" %>' href="<%= urlControlPanelSitesPortlet %>"
label='<%= PortalUtil.getPortletTitle(curPortlet, application, locale) %>' selected="<%= selected %>" />
</c:if>

It works. But I am not sure these is a good solution!?

Thanks again,
Morad.
Mikko Torri,修改在9 年前。

RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"

Junior Member 帖子: 25 加入日期: 14-4-22 最近的帖子
Hi

I had similar requirements and inspired by your result digged deeper into it.
The portlets can also be hidden from users by removing the Access to "Go to Control Panel" action of the User role on the portlets.

HTH

M
diego gabriele,修改在8 年前。

RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"

New Member 帖子: 20 加入日期: 14-12-29 最近的帖子
any clue on how to do the same thing in liferay 6.2?

Thank you
thumbnail
Arun Das,修改在8 年前。

RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"

Regular Member 帖子: 166 加入日期: 12-7-23 最近的帖子
Hi,
You can comment out the following from tomcat-7.0.62\webapps\ROOT\WEB-INF\portlet-custom.xml file.
<portlet>
<portlet-name>140</portlet-name>
<display-name>My Pages</display-name>
....
</portlet>

<portlet>
<portlet-name>153</portlet-name>
<display-name>My Workflow Tasks</display-name>
....
</portlet>

<portlet>
<portlet-name>158</portlet-name>
<display-name>My Workflow Instances</display-name>
....
</portlet>

You should restart the server to take effect.

HTH
Arun
thumbnail
Fil Giu,修改在8 年前。

RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"

Junior Member 帖子: 48 加入日期: 13-11-20 最近的帖子
Hi Arun Das, I think that your solution is unclean. Is better "Inactive" these portlets from control panel
thumbnail
Arun Das,修改在8 年前。

RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"

Regular Member 帖子: 166 加入日期: 12-7-23 最近的帖子
Hi Fil,
I hope you read the question, it said "hide" not "disable". It can be done using a "hook" or the way i mentioned. I'm not sure whether any other way available. Hope you understood. BTW the screenshot you attached is not from LR 6.2

Thanks
Arun
thumbnail
Fil Giu,修改在7 年前。

RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"

Junior Member 帖子: 48 加入日期: 13-11-20 最近的帖子
Arun Das:
BTW the screenshot you attached is not from LR 6.2


The screenshot is exactly from Liferay 6.2 GA4
diego gabriele,修改在8 年前。

RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"

New Member 帖子: 20 加入日期: 14-12-29 最近的帖子
Thank you Arun