Fórumok
Dockbar in left side
Soukaina HAJI, módosítva 9 év-val korábban
Dockbar in left side
Regular Member Bejegyzések: 195 Csatlakozás dátuma: 2014.06.17. Legújabb bejegyzések
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, módosítva 9 év-val korábban
RE: Dockbar in left side (Válasz)
Regular Member Bejegyzések: 184 Csatlakozás dátuma: 2013.03.01. Legújabb bejegyzések
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, módosítva 9 év-val korábban
RE: Dockbar in left side
Regular Member Bejegyzések: 195 Csatlakozás dátuma: 2014.06.17. Legújabb bejegyzések
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, módosítva 9 év-val korábban
RE: Dockbar in left side
Regular Member Bejegyzések: 127 Csatlakozás dátuma: 2019.09.16. Legújabb bejegyzések
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, módosítva 9 év-val korábban
RE: Dockbar in left side
Regular Member Bejegyzések: 127 Csatlakozás dátuma: 2019.09.16. Legújabb bejegyzések
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, módosítva 9 év-val korábban
RE: Dockbar in left side
Liferay Legend Bejegyzések: 1302 Csatlakozás dátuma: 2009.06.24. Legújabb bejegyzések
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.