META-INF.resources.article.asset_display_page.jsp Maven / Gradle / Ivy
<%--
/**
* SPDX-FileCopyrightText: (c) 2000 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" %>
<%
String layoutUuid = null;
JournalArticle article = journalDisplayContext.getArticle();
if (article != null) {
layoutUuid = article.getLayoutUuid();
}
Layout articleLayout = null;
if (Validator.isNotNull(layoutUuid)) {
articleLayout = LayoutLocalServiceUtil.fetchLayoutByUuidAndGroupId(layoutUuid, article.getGroupId(), false);
if (articleLayout == null) {
articleLayout = LayoutLocalServiceUtil.fetchLayoutByUuidAndGroupId(layoutUuid, article.getGroupId(), true);
}
}
JournalEditArticleDisplayContext journalEditArticleDisplayContext = (JournalEditArticleDisplayContext)request.getAttribute(JournalEditArticleDisplayContext.class.getName());
%>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy