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

META-INF.resources.wiki.change_page_parent.jspf Maven / Gradle / Ivy

There is a newer version: 7.0.124
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
 */
--%>

<% String parentText = StringPool.BLANK; WikiPage parentPage = wikiPage.getViewableParentPage(); if (parentPage == null) { parentText = StringPool.OPEN_PARENTHESIS + LanguageUtil.get(request, "none") + StringPool.CLOSE_PARENTHESIS; } else { parentText = parentPage.getTitle(); parentPage = parentPage.getViewableParentPage(); while (parentPage != null) { parentText = parentPage.getTitle() + " » " + parentText; parentPage = parentPage.getViewableParentPage(); } } List childPages = WikiPageLocalServiceUtil.getChildren(node.getNodeId(), true, StringPool.BLANK); childPages = ListUtil.sort(childPages); childPages.remove(wikiPage); %> <% boolean newParentAvailable = true; %> <% newParentAvailable = false; %> <% for (WikiPage childPage : childPages) { %> <% request.setAttribute(WikiWebKeys.WIKI_TREE_WALKER_DEPTH, 1); request.setAttribute(WikiWebKeys.WIKI_TREE_WALKER_PAGE, wikiPage); request.setAttribute(WikiWebKeys.WIKI_TREE_WALKER_PARENT, childPage); %> <% } %>
function changeParent() { document.changeParentFm.<%= Constants.CMD %>.value = '<%= Constants.CHANGE_PARENT %>'; submitForm(document.changeParentFm); } function publishPage() { document.changeParentFm.workflowAction.value = '<%= WorkflowConstants.ACTION_PUBLISH %>'; changeParent(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy