
META-INF.resources.wiki_admin.import_pages.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="/wiki/init.jsp" %>
<%
String tabs2 = ParamUtil.getString(request, "tabs2");
String redirect = ParamUtil.getString(request, "redirect");
String uploadProgressId = PortalUtil.generateRandomKey(request, "portlet_wiki_import_pages_uploadProgressId");
String importProgressId = PortalUtil.generateRandomKey(request, "portlet_wiki_import_pages_importProgressId");
WikiNode node = (WikiNode)request.getAttribute(WikiWebKeys.WIKI_NODE);
long nodeId = BeanParamUtil.getLong(node, request, "nodeId");
WikiImporterTracker wikiImporterTracker = (WikiImporterTracker)request.getAttribute(WikiWebKeys.WIKI_IMPORTER_TRACKER);
String[] importers = ArrayUtil.toStringArray(wikiImporterTracker.getImporters());
if (Validator.isNull(tabs2)) {
tabs2 = importers[0];
}
PortletURL portletURL = renderResponse.createRenderURL();
portletURL.setParameter("mvcRenderCommandName", "/wiki/import_pages");
portletURL.setParameter("redirect", redirect);
portletURL.setParameter("nodeId", String.valueOf(nodeId));
portletDisplay.setShowBackIcon(true);
WikiURLHelper wikiURLHelper = new WikiURLHelper(wikiRequestHelper, renderResponse, wikiGroupServiceConfiguration);
PortletURL backToNodeURL = wikiURLHelper.getBackToNodeURL(node);
portletDisplay.setURLBack(backToNodeURL.toString());
renderResponse.setTitle(LanguageUtil.get(request, "import-pages"));
%>
function importPages() {
<%= uploadProgressId %>.startProgress();
<%= importProgressId %>.startProgress();
submitForm(document. fm);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy