Fórumok
Hide "My Pages", "My Workflow Tasks" and "My Submissions"
Morad Ahmad, módosítva 9 év-val korábban
Hide "My Pages", "My Workflow Tasks" and "My Submissions"
Junior Member Bejegyzések: 71 Csatlakozás dátuma: 2010.06.16. Legújabb bejegyzések
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.
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.
Pankaj Kathiriya, módosítva 9 év-val korábban
RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"
Liferay Master Bejegyzések: 722 Csatlakozás dátuma: 2010.08.05. Legújabb bejegyzések
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.
You may override jsp "html\portlet\control_panel_menu\view.jsp" to filter those portlets using plugin-hook.
Morad Ahmad, módosítva 9 év-val korábban
RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"
Junior Member Bejegyzések: 71 Csatlakozás dátuma: 2010.06.16. Legújabb bejegyzések
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.
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, módosítva 9 év-val korábban
RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"
Junior Member Bejegyzések: 25 Csatlakozás dátuma: 2014.04.22. Legújabb bejegyzések
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
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, módosítva 8 év-val korábban
RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"
New Member Bejegyzések: 20 Csatlakozás dátuma: 2014.12.29. Legújabb bejegyzések
any clue on how to do the same thing in liferay 6.2?
Thank you
Thank you
Arun Das, módosítva 8 év-val korábban
RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"
Regular Member Bejegyzések: 166 Csatlakozás dátuma: 2012.07.23. Legújabb bejegyzések
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
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
Fil Giu, módosítva 8 év-val korábban
RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"
Junior Member Bejegyzések: 48 Csatlakozás dátuma: 2013.11.20. Legújabb bejegyzések
Hi Arun Das, I think that your solution is unclean. Is better "Inactive" these portlets from control panel
Mellékletek:
Arun Das, módosítva 8 év-val korábban
RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"
Regular Member Bejegyzések: 166 Csatlakozás dátuma: 2012.07.23. Legújabb bejegyzések
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
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
Fil Giu, módosítva 7 év-val korábban
RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"
Junior Member Bejegyzések: 48 Csatlakozás dátuma: 2013.11.20. Legújabb bejegyzésekArun Das:
BTW the screenshot you attached is not from LR 6.2
The screenshot is exactly from Liferay 6.2 GA4
diego gabriele, módosítva 8 év-val korábban
RE: Hide "My Pages", "My Workflow Tasks" and "My Submissions"
New Member Bejegyzések: 20 Csatlakozás dátuma: 2014.12.29. Legújabb bejegyzések
Thank you Arun