All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.view_display_pages.jsp Maven / Gradle / Ivy

The newest version!
<%--
/**
 * SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */
--%>

<%@ include file="/init.jsp" %>

<%
DisplayPageDisplayContext displayPageDisplayContext = (DisplayPageDisplayContext)request.getAttribute(DisplayPageDisplayContext.class.getName());

if (displayPageDisplayContext == null) {
	InfoItemServiceRegistry infoItemServiceRegistry = (InfoItemServiceRegistry)request.getAttribute(InfoItemServiceRegistry.class.getName());

	displayPageDisplayContext = new DisplayPageDisplayContext(request, infoItemServiceRegistry, liferayPortletRequest, liferayPortletResponse);
}
%>





<%
DisplayPageManagementToolbarDisplayContext displayPageManagementToolbarDisplayContext = new DisplayPageManagementToolbarDisplayContext(request, liferayPortletRequest, liferayPortletResponse, displayPageDisplayContext);
%>



<% LayoutPageTemplateCollection curLayoutPageTemplateCollection = null; LayoutPageTemplateEntry curLayoutPageTemplateEntry = null; Object result = row.getObject(); if (result instanceof LayoutPageTemplateEntry) { curLayoutPageTemplateEntry = (LayoutPageTemplateEntry)result; } else { curLayoutPageTemplateCollection = (LayoutPageTemplateCollection)result; } %> <% row.setCssClass("card-page-item card-page-item-directory " + row.getCssClass()); row.setData( HashMapBuilder.put( "actions", displayPageManagementToolbarDisplayContext.getAvailableLayoutPageTemplateCollectionActions(curLayoutPageTemplateCollection) ).build()); %> <% row.setData( HashMapBuilder.put( "actions", displayPageManagementToolbarDisplayContext.getAvailableLayoutPageTemplateEntryActions(curLayoutPageTemplateEntry) ).build()); %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy