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

META-INF.resources.blogs.view_entry.jsp Maven / Gradle / Ivy

There is a newer version: 6.0.134
Show newest version
<%--
/**
 * 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" %>



<%
BlogsViewEntryDisplayContext blogsViewEntryDisplayContext = new BlogsViewEntryDisplayContext(liferayPortletRequest, liferayPortletResponse);

request.setAttribute("view_entry_content.jsp-entry", blogsViewEntryDisplayContext.getBlogsEntry());

request.setAttribute("view_entry_content.jsp-assetEntry", blogsViewEntryDisplayContext.getBlogsEntryAssetEntry());

request.setAttribute("view_entry_content.jsp-ratingsEntry", blogsViewEntryDisplayContext.getBlogsEntryRatingsEntry());
request.setAttribute("view_entry_content.jsp-ratingsStats", blogsViewEntryDisplayContext.getBlogsEntryRatingsStats());

portletDisplay.setShowBackIcon(true);
portletDisplay.setURLBack(blogsViewEntryDisplayContext.getRedirect());

boolean portletTitleBasedNavigation = GetterUtil.getBoolean(portletConfig.getInitParameter("portlet-title-based-navigation"));

if (portletTitleBasedNavigation) {
	renderResponse.setTitle(blogsViewEntryDisplayContext.getBlogsEntryTitle());
}

PortalUtil.setPageDescription(blogsViewEntryDisplayContext.getBlogsEntryDescription(), request);
PortalUtil.setPageTitle(blogsViewEntryDisplayContext.getBlogsEntryTitle(), request);

List assetTags = AssetTagLocalServiceUtil.getTags(BlogsEntry.class.getName(), blogsViewEntryDisplayContext.getBlogsEntryId());

assetHelper.addLayoutTags(request, assetTags);

PortalUtil.setPageKeywords(ListUtil.toString(assetTags, AssetTag.NAME_ACCESSOR), request);

if (request.getAttribute(WebKeys.LAYOUT_ASSET_ENTRY) == null) {
	request.setAttribute(WebKeys.LAYOUT_ASSET_ENTRY, blogsViewEntryDisplayContext.getBlogsEntryAssetEntry());
}

LinkedAssetEntryIdsUtil.addLinkedAssetEntryId(request, blogsViewEntryDisplayContext.getBlogsEntryAssetEntryId());

PortalUtil.addPortletBreadcrumbEntry(request, blogsViewEntryDisplayContext.getBlogsEntryTitle(), currentURL);
%>




	
	

	

<% request.setAttribute("view_entry_related.jsp-blogs_entry", blogsViewEntryDisplayContext.getPreviousBlogsEntry()); %> <% request.setAttribute("view_entry_related.jsp-blogs_entry", blogsViewEntryDisplayContext.getNextBlogsEntry()); %>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy