Personalización de los Bookmarks del Portal
Info |
---|
|
Los cambios en jsp dentro del jboss, requieren del reinicio de este. |
Se decriben en esta página las personalizaciones básicas más frecuentes a realizar en el portal.
...
Code Block |
---|
title | <O3>/jboss/standalone/deployments/o3-server/default/deploy/gserver/0o3.ear/o3portal.war.ear/o3web.war/i18n- init.jsp y <03>/liferay/tomcat/webapps/o3portal/i18n- init.jsp |
---|
|
<%
//initialize the theme
String theme = csApplication.getContext().getProperty("ideasoft.themes.defaultTheme", "red");
session.setAttribute(THEME_SESSION_ATTRIBUTE, theme);
session.setAttribute(THEME_PATH_SESSION_ATTRIBUTE, "/themes/" + theme);
%>
REEMPLAZAR POR:
<%
//initialize the theme
String login = csClient.getUserLogin();
String theme;
if ("user".equals(login)) {
theme = "red";
} else if ("admin".equals(login)) {
theme = "blue";
} else {
theme = csApplication.getContext().getProperty("ideasoft.themes.defaultTheme", "red");
}
session.setAttribute(THEME_SESSION_ATTRIBUTE, theme);
session.setAttribute(THEME_PATH_SESSION_ATTRIBUTE, "/themes/" + theme);
%>
|
...
Code Block |
---|
title | <O3>/jboss/serverstandalone/default/deploy/gserver/0o3deployments/o3-server.ear/o3portalo3web.war/header.jsp |
---|
| y <03>/liferay/tomcat/webapps/o3portal/header.jsp |
|
|
<a href="<%=request.getContextPath()%>/logout.jsp" target="_top" class="header"><fmt:message key="header.logout" bundle="${lang}"/></a>
|
...
Code Block |
---|
title | <O3>/jboss/standalone/deployments/o3-server/default/deploy/gserver/0o3.ear/o3portal.war.ear/o3web.war/header.jsp y <03>/liferay/tomcat/webapps/o3portal/header.jsp |
---|
|
<%
boolean canEditBookmarks = csClient.isLoginOk() && csClient.getClientRestrictions().isUserInRole("Manager");
%>
<% if (canEditBookmarks) { %>
|
<a href="<%=request.getContextPath()%>/logout.jsp" target="_top" class="header"><fmt:message key="header.logout" bundle="${lang}"/></a>
<% } %>
|
...
Code Block |
---|
title | <O3>/jboss/standalone/deployments/o3-server/default/deploy/gserver/0o3.ear/o3portal.war.ear/o3web.war/WEB-INF/tags/o3/desktopHeader.tag y <03>/liferay/tomcat/webapps/o3portal/WEB-INF/tags/o3/desktopHeader.tag |
---|
|
|
<a href="javascript:logout()" class="xtabOn"><fmt:message key="jtabs.logout" bundle="${lang_jdesktop}"/></a>
|
...
Code Block |
---|
title | <O3>/jboss/standalone/deployments/o3-server/default/deploy/gserver/0o3.ear/o3portal.war.ear/o3web.war/WEB-INF/tags/o3/desktopHeader.tag y <03>/liferay/tomcat/webapps/o3portal/WEB-INF/tags/o3/desktopHeader.tag |
---|
|
<jsp:useBean id="csClient" scope="session" type="com.ideasoft.cs.ejb.web.CSClientBean"/>
<%
boolean canEditBookmarks = csClient.isLoginOk() && csClient.getClientRestrictions().isUserInRole("Manager");
%>
<% if (canEditBookmarks) { %>
|
<a href="javascript:logout()" class="xtabOn"><fmt:message key="jtabs.logout" bundle="${lang_jdesktop}"/></a>
<% } %>
|