Foros de discusión
Dockbar in left side
Soukaina HAJI, modificado hace 9 años.
Dockbar in left side
Regular Member Mensajes: 195 Fecha de incorporación: 17/06/14 Mensajes recientes
Hello, I need to know in which file is declared this dockbar in left :
Liferay : liferay-portal-6.2-ce-ga2
Liferay : liferay-portal-6.2-ce-ga2
M J, modificado hace 9 años.
RE: Dockbar in left side (Respuesta)
Regular Member Mensajes: 184 Fecha de incorporación: 1/03/13 Mensajes recientes
File is tomcat-7.0.42\webapps\ROOT\html\portlet\dockbar\view.jsp. Look for the following code:
<c:if test="<%= !group.isControlPanel() && userSetupComplete && (hasLayoutAddPermission || hasLayoutUpdatePermission || (layoutTypePortlet.isCustomizable() && layoutTypePortlet.isCustomizedView() && hasLayoutCustomizePermission)) %>">
<portlet:renderurl var="addURL" windowstate="<%= LiferayWindowState.EXCLUSIVE.toString() %>">
<portlet:param name="struts_action" value="/dockbar/add_panel" />
<portlet:param name="stateMaximized" value="<%= String.valueOf(themeDisplay.isStateMaximized()) %>" />
<portlet:param name="viewEntries" value="<%= Boolean.TRUE.toString() %>" />
</portlet:renderurl>
<aui:nav-item anchorId="addPanel" cssClass="site-add-controls" data-panelURL="<%= addURL %>" href="javascript:;" iconCssClass="icon-plus" label="add" />
</c:if>
<c:if test="<%= !group.isControlPanel() && userSetupComplete && (hasLayoutUpdatePermission || GroupPermissionUtil.contains(permissionChecker, group.getGroupId(), ActionKeys.PREVIEW_IN_DEVICE)) %>">
<portlet:renderurl var="previewContentURL" windowstate="<%= LiferayWindowState.EXCLUSIVE.toString() %>">
<portlet:param name="struts_action" value="/dockbar/preview_panel" />
</portlet:renderurl>
<aui:nav-item anchorId="previewPanel" cssClass="page-preview-controls" data-panelURL="<%= previewContentURL %>" href="javascript:;" iconCssClass="icon-desktop" label="preview" />
</c:if>
<c:if test="<%= !group.isControlPanel() && userSetupComplete && (themeDisplay.isShowLayoutTemplatesIcon() || themeDisplay.isShowPageSettingsIcon()) %>">
<portlet:renderurl var="editLayoutURL" windowstate="<%= LiferayWindowState.EXCLUSIVE.toString() %>">
<portlet:param name="struts_action" value="/dockbar/edit_layout_panel" />
<portlet:param name="closeRedirect" value="<%= PortalUtil.getLayoutURL(layout, themeDisplay) %>" />
<portlet:param name="groupId" value="<%= String.valueOf(scopeGroupId) %>" />
<portlet:param name="selPlid" value="<%= String.valueOf(plid) %>" />
</portlet:renderurl>
<aui:nav-item anchorId="editLayoutPanel" cssClass="page-edit-controls" data-panelURL="<%= editLayoutURL %>" href="javascript:;" iconCssClass="icon-edit" label="edit" />
</c:if>
Soukaina HAJI, modificado hace 9 años.
RE: Dockbar in left side
Regular Member Mensajes: 195 Fecha de incorporación: 17/06/14 Mensajes recientes
In the view.jsp file the condition is already there , but still not working ...
I added this line :
I want for the left dock bar to appear when it's not the administrator !
thank you
I added this line :
#if ($permissionChecker.isOmniadmin())
I want for the left dock bar to appear when it's not the administrator !
thank you
Anonymous Anonymous, modificado hace 9 años.
RE: Dockbar in left side
Regular Member Mensajes: 127 Fecha de incorporación: 16/09/19 Mensajes recientes
Hi Soukaina
if u are stuck at the same point still ...in this case u have to put two conditions like
or u can share Ur customized files here to check an response.
thank you
Enayath
if u are stuck at the same point still ...in this case u have to put two conditions like
#if ($permissionChecker.isOmniadmin()) #else #end..in if show the complete access of admin and in else hide the top part and show the left one ....i mean override the dock bar view
or u can share Ur customized files here to check an response.
thank you
Enayath
Anonymous Anonymous, modificado hace 9 años.
RE: Dockbar in left side
Regular Member Mensajes: 127 Fecha de incorporación: 16/09/19 Mensajes recientes
Hi Soukaina
Thank you
Enayath
i am stuck with the same point ...i am also working on the dockbar so can u kindly suggest me how to modify the UI and how to add some additional look and feel to dockbar
Thank you
Enayath
Ravi Kumar Gupta, modificado hace 9 años.
RE: Dockbar in left side
Liferay Legend Mensajes: 1302 Fecha de incorporación: 24/06/09 Mensajes recientes
To change look and feel,
1. Create your own theme, do not change directly in ROOT.
2. If you need to change any jsp in ROOT folder, create hook.
Look for the liferay development guide for theme and hook development.
1. Create your own theme, do not change directly in ROOT.
2. If you need to change any jsp in ROOT folder, create hook.
Look for the liferay development guide for theme and hook development.