META-INF.resources.blogs.view_entry_content.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="/blogs/init.jsp" %>
<%
SearchContainer> searchContainer = (SearchContainer)request.getAttribute("view_entry_content.jsp-searchContainer");
BlogsEntry entry = (BlogsEntry)request.getAttribute("view_entry_content.jsp-entry");
BlogsPortletInstanceConfiguration blogsPortletInstanceConfiguration = BlogsPortletInstanceConfigurationUtil.getBlogsPortletInstanceConfiguration(themeDisplay);
BlogsViewEntryContentDisplayContext blogsViewEntryContentDisplayContext = (BlogsViewEntryContentDisplayContext)request.getAttribute(BlogsViewEntryContentDisplayContext.class.getName());
String viewEntryURL = blogsViewEntryContentDisplayContext.getViewEntryURL(entry);
%>
<%
if (searchContainer != null) {
searchContainer.setResultsAndTotal(searchContainer::getResults, searchContainer.getTotal() - 1);
}
%>