掲示板

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

9年前 に Morad Ahmad によって更新されました。

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

Junior Member 投稿: 71 参加年月日: 10/06/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
9年前 に Pankaj Kathiriya によって更新されました。

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

Liferay Master 投稿: 722 参加年月日: 10/08/05 最新の投稿
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.
9年前 に Morad Ahmad によって更新されました。

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

Junior Member 投稿: 71 参加年月日: 10/06/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.
9年前 に Mikko Torri によって更新されました。

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

Junior Member 投稿: 25 参加年月日: 14/04/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
8年前 に diego gabriele によって更新されました。

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
8年前 に Arun Das によって更新されました。

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

Regular Member 投稿: 166 参加年月日: 12/07/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
8年前 に Fil Giu によって更新されました。

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
8年前 に Arun Das によって更新されました。

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

Regular Member 投稿: 166 参加年月日: 12/07/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
7年前 に Fil Giu によって更新されました。

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
8年前 に diego gabriele によって更新されました。

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

New Member 投稿: 20 参加年月日: 14/12/29 最新の投稿
Thank you Arun