
META-INF.resources.view.jsp Maven / Gradle / Ivy
<%--
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>
<%@ include file="/init.jsp" %>
<%
long assetCategoryId = ParamUtil.getLong(request, "categoryId");
if (assetCategoryId > 0) {
AssetCategory assetCategory = AssetCategoryLocalServiceUtil.getCategory(assetCategoryId);
assetCategory = assetCategory.toEscapedModel();
PortalUtil.setPageKeywords(assetCategory.getTitle(locale), request);
}
String assetTagName = ParamUtil.getString(request, "tag");
if (Validator.isNotNull(assetTagName)) {
PortalUtil.setPageKeywords(assetTagName, request);
}
if (assetPublisherDisplayContext.isEnableTagBasedNavigation() && assetPublisherDisplayContext.isSelectionStyleManual() && ((assetPublisherDisplayContext.getAllAssetCategoryIds().length > 0) || (assetPublisherDisplayContext.getAllAssetTagNames().length > 0))) {
assetPublisherDisplayContext.setSelectionStyle("dynamic");
}
%>
<%
boolean enableRSS = !PortalUtil.isRSSFeedsEnabled() ? false : assetPublisherDisplayContext.isEnableRSS();
%>
<%
PortletURL portletURL = renderResponse.createRenderURL();
SearchContainer searchContainer = new SearchContainer(renderRequest, null, null, SearchContainer.DEFAULT_CUR_PARAM, assetPublisherDisplayContext.getDelta(), portletURL, null, null);
if (!assetPublisherDisplayContext.isPaginationTypeNone()) {
searchContainer.setDelta(assetPublisherDisplayContext.getDelta());
searchContainer.setDeltaConfigurable(false);
}
%>
<%
request.setAttribute("view.jsp-viewInContext", assetPublisherDisplayContext.isAssetLinkBehaviorViewInPortlet());
%>
<%@ include file="/view_dynamic_list.jspf" %>
<%@ include file="/view_manual.jspf" %>
<%!
private static Log _log = LogFactoryUtil.getLog("com_liferay_asset_publisher_web.view_jsp");
%>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy