
META-INF.resources.wiki.view_trash_page_attachments.jsp Maven / Gradle / Ivy
The newest version!
<%--
/**
* 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="/wiki/init.jsp" %>
<%
WikiPage wikiPage = (WikiPage)request.getAttribute(WikiWebKeys.WIKI_PAGE);
WikiNode node = (WikiNode)request.getAttribute(WikiWebKeys.WIKI_NODE);
PortletURL portletURL = renderResponse.createActionURL();
portletURL.setParameter("nodeId", String.valueOf(wikiPage.getNodeId()));
portletURL.setParameter("title", wikiPage.getTitle());
portletURL.setParameter(ActionRequest.ACTION_NAME, "/wiki/view");
PortalUtil.addPortletBreadcrumbEntry(request, wikiPage.getTitle(), portletURL.toString());
portletURL.setParameter(ActionRequest.ACTION_NAME, "/wiki/view_page_attachments");
PortalUtil.addPortletBreadcrumbEntry(request, LanguageUtil.get(request, "attachments"), portletURL.toString());
%>
<%
List attachmentsFileEntries = wikiPage.getDeletedAttachmentsFileEntries();
int attachmentsFileEntriesCount = wikiPage.getDeletedAttachmentsFileEntriesCount();
String emptyResultsMessage = "this-page-does-not-have-file-attachments-in-the-recycle-bin";
PortletURL iteratorURL = renderResponse.createRenderURL();
iteratorURL.setParameter("mvcRenderCommandName", "/wiki/view_trash_page_attachments");
iteratorURL.setParameter("redirect", currentURL);
iteratorURL.setParameter("nodeId", String.valueOf(wikiPage.getNodeId()));
iteratorURL.setParameter("title", wikiPage.getTitle());
iteratorURL.setWindowState(LiferayWindowState.POP_UP);
boolean paginate = false;
boolean showPageAttachmentAction = true;
int status = WorkflowConstants.STATUS_IN_TRASH;
%>
<%@ include file="/wiki/attachments_list.jspf" %>
new Liferay.RestoreEntry(
{
checkEntryURL: '<%= checkEntryURL.toString() %>',
duplicateEntryURL: '<%= duplicateEntryURL.toString() %>',
namespace: ' '
}
);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy