Fórum

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

Morad Ahmad, modificado 9 Anos atrás.

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

Junior Member Postagens: 71 Data de Entrada: 16/06/10 Postagens Recentes
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, modificado 9 Anos atrás.

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

Liferay Master Postagens: 722 Data de Entrada: 05/08/10 Postagens Recentes
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, modificado 9 Anos atrás.

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

Junior Member Postagens: 71 Data de Entrada: 16/06/10 Postagens Recentes
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, modificado 9 Anos atrás.

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

Junior Member Postagens: 25 Data de Entrada: 22/04/14 Postagens Recentes
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, modificado 8 Anos atrás.

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

New Member Postagens: 20 Data de Entrada: 29/12/14 Postagens Recentes
any clue on how to do the same thing in liferay 6.2?

Thank you
thumbnail
Arun Das, modificado 8 Anos atrás.

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

Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
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, modificado 8 Anos atrás.

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

Junior Member Postagens: 48 Data de Entrada: 20/11/13 Postagens Recentes
Hi Arun Das, I think that your solution is unclean. Is better "Inactive" these portlets from control panel
thumbnail
Arun Das, modificado 8 Anos atrás.

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

Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
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, modificado 7 Anos atrás.

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

Junior Member Postagens: 48 Data de Entrada: 20/11/13 Postagens Recentes
Arun Das:
BTW the screenshot you attached is not from LR 6.2


The screenshot is exactly from Liferay 6.2 GA4
diego gabriele, modificado 8 Anos atrás.

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

New Member Postagens: 20 Data de Entrada: 29/12/14 Postagens Recentes
Thank you Arun