Forum

Accueil » Alloy UI » English

Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
Soukaina HAJI
Dockbar in left side
15 août 2014 07:31
Réponse

Soukaina HAJI

Rang: Regular Member

Publications: 196

Date d'inscription: 17 juin 2014

Publications Récentes

Hello, I need to know in which file is declared this dockbar in left :



Liferay : liferay-portal-6.2-ce-ga2
M J
RE: Dockbar in left side
15 août 2014 10:18
Réponse

M J

Rang: Regular Member

Publications: 184

Date d'inscription: 1 mars 2013

Publications Récentes

File is tomcat-7.0.42\webapps\ROOT\html\portlet\dockbar\view.jsp. Look for the following code:

 1
 2        <c:if test="<%= !group.isControlPanel() && userSetupComplete && (hasLayoutAddPermission || hasLayoutUpdatePermission || (layoutTypePortlet.isCustomizable() && layoutTypePortlet.isCustomizedView() && hasLayoutCustomizePermission)) %>">
 3            <portlet:renderURL var="addURL" windowState="<%= LiferayWindowState.EXCLUSIVE.toString() %>">
 4                <portlet:param name="struts_action" value="/dockbar/add_panel" />
 5                <portlet:param name="stateMaximized" value="<%= String.valueOf(themeDisplay.isStateMaximized()) %>" />
 6                <portlet:param name="viewEntries" value="<%= Boolean.TRUE.toString() %>" />
 7            </portlet:renderURL>
 8
 9            <aui:nav-item anchorId="addPanel" cssClass="site-add-controls" data-panelURL="<%= addURL %>" href="javascript:;" iconCssClass="icon-plus" label="add" />
10        </c:if>
11
12        <c:if test="<%= !group.isControlPanel() && userSetupComplete && (hasLayoutUpdatePermission || GroupPermissionUtil.contains(permissionChecker, group.getGroupId(), ActionKeys.PREVIEW_IN_DEVICE)) %>">
13            <portlet:renderURL var="previewContentURL" windowState="<%= LiferayWindowState.EXCLUSIVE.toString() %>">
14                <portlet:param name="struts_action" value="/dockbar/preview_panel" />
15            </portlet:renderURL>
16
17            <aui:nav-item anchorId="previewPanel" cssClass="page-preview-controls" data-panelURL="<%= previewContentURL %>" href="javascript:;" iconCssClass="icon-desktop" label="preview" />
18        </c:if>
19
20        <c:if test="<%= !group.isControlPanel() && userSetupComplete && (themeDisplay.isShowLayoutTemplatesIcon() || themeDisplay.isShowPageSettingsIcon()) %>">
21            <portlet:renderURL var="editLayoutURL" windowState="<%= LiferayWindowState.EXCLUSIVE.toString() %>">
22                <portlet:param name="struts_action" value="/dockbar/edit_layout_panel" />
23                <portlet:param name="closeRedirect" value="<%= PortalUtil.getLayoutURL(layout, themeDisplay) %>" />
24                <portlet:param name="groupId" value="<%= String.valueOf(scopeGroupId) %>" />
25                <portlet:param name="selPlid" value="<%= String.valueOf(plid) %>" />
26            </portlet:renderURL>
27
28            <aui:nav-item anchorId="editLayoutPanel" cssClass="page-edit-controls" data-panelURL="<%= editLayoutURL %>" href="javascript:;" iconCssClass="icon-edit" label="edit" />
29        </c:if>
enayath ulla
RE: Dockbar in left side
18 août 2014 01:53
Réponse

enayath ulla

Rang: Junior Member

Publications: 64

Date d'inscription: 15 juillet 2013

Publications Récentes

Hi Soukaina


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
RE: Dockbar in left side
18 août 2014 02:39
Réponse

Ravi Kumar Gupta

Rang: Liferay Legend

Publications: 1303

Date d'inscription: 23 juin 2009

Publications Récentes

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.
Soukaina HAJI
RE: Dockbar in left side
18 août 2014 06:41
Réponse

Soukaina HAJI

Rang: Regular Member

Publications: 196

Date d'inscription: 17 juin 2014

Publications Récentes

In the view.jsp file the condition is already there , but still not working ...
I added this line :
1#if ($permissionChecker.isOmniadmin())


I want for the left dock bar to appear when it's not the administrator !
thank you
enayath ulla
RE: Dockbar in left side
19 août 2014 01:00
Réponse

enayath ulla

Rang: Junior Member

Publications: 64

Date d'inscription: 15 juillet 2013

Publications Récentes

Hi Soukaina

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