Fórum
Dockbar in left side
Soukaina HAJI, modificado 9 Anos atrás.
Dockbar in left side
Regular Member Postagens: 195 Data de Entrada: 17/06/14 Postagens Recentes
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 9 Anos atrás.
RE: Dockbar in left side (Resposta)
Regular Member Postagens: 184 Data de Entrada: 01/03/13 Postagens Recentes
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 9 Anos atrás.
RE: Dockbar in left side
Regular Member Postagens: 195 Data de Entrada: 17/06/14 Postagens Recentes
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 9 Anos atrás.
RE: Dockbar in left side
Regular Member Postagens: 127 Data de Entrada: 16/09/19 Postagens Recentes
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 9 Anos atrás.
RE: Dockbar in left side
Regular Member Postagens: 127 Data de Entrada: 16/09/19 Postagens Recentes
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 9 Anos atrás.
RE: Dockbar in left side
Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
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.