diff --git a/xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/ApplicationResources.properties b/xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/ApplicationResources.properties index 8ac7699099ab6bb021519fb3d5ed73f6c7ffdde1..a63bc3dd3f18a18cd7f40487ac91996e816f164a 100644 --- a/xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/ApplicationResources.properties +++ b/xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/ApplicationResources.properties @@ -2656,7 +2656,6 @@ xe.panels.new.itemType=Type of the item xe.panels.new.page=New Page (current space) xe.panels.new.space=New Space xe.panels.new.name=Name -xe.panels.orphaned=Orphaned Pages xe.panels.wizard.savenew=Save xe.panels.wizard.revert=Reset xe.panels.wizard.homepage=Go to Panels @@ -5211,6 +5210,7 @@ core.viewers.comments.permalink.hide=Hide ## until 10.7 ####################################### xe.panels.spaces=Spaces +xe.panels.orphaned=Orphaned Pages ### Space Index Page platform.index.spaceIndex=Space Index platform.index.spaceIndexDescription=Pages in the {0} space: diff --git a/xwiki-platform-core/xwiki-platform-panels/xwiki-platform-panels-ui/src/main/resources/Panels/OrphanedPages.xml b/xwiki-platform-core/xwiki-platform-panels/xwiki-platform-panels-ui/src/main/resources/Panels/OrphanedPages.xml deleted file mode 100644 index 3f5b375233fecff48d45b0d9e050d79ef607468a..0000000000000000000000000000000000000000 --- a/xwiki-platform-core/xwiki-platform-panels/xwiki-platform-panels-ui/src/main/resources/Panels/OrphanedPages.xml +++ /dev/null @@ -1,145 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- - * See the NOTICE file distributed with this work for additional - * information regarding copyright ownership. - * - * This 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 software 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. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this software; if not, write to the Free - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA - * 02110-1301 USA, or see the FSF site: http://www.fsf.org. ---> - -<xwikidoc version="1.1"> - <web>Panels</web> - <name>OrphanedPages</name> - <language/> - <defaultLanguage/> - <translation>0</translation> - <creator>xwiki:XWiki.Admin</creator> - <parent>Panels.WebHome</parent> - <author>xwiki:XWiki.Admin</author> - <contentAuthor>xwiki:XWiki.Admin</contentAuthor> - <version>1.1</version> - <title/> - <comment/> - <minorEdit>false</minorEdit> - <syntaxId>xwiki/2.0</syntaxId> - <hidden>true</hidden> - <content/> - <object> - <name>Panels.OrphanedPages</name> - <number>0</number> - <className>Panels.PanelClass</className> - <guid>817eb450-b782-4ce2-96ec-89c39f7748be</guid> - <class> - <name>Panels.PanelClass</name> - <customClass/> - <customMapping/> - <defaultViewSheet/> - <defaultEditSheet/> - <defaultWeb/> - <nameField/> - <validationScript/> - <category> - <cache>0</cache> - <disabled>0</disabled> - <displayType>select</displayType> - <multiSelect>0</multiSelect> - <name>category</name> - <number>5</number> - <prettyName>Category</prettyName> - <relationalStorage>0</relationalStorage> - <separator> </separator> - <separators> ,|</separators> - <size>1</size> - <unmodifiable>0</unmodifiable> - <values>Information|Navigation|Tools|Administration|Other</values> - <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType> - </category> - <content> - <disabled>0</disabled> - <editor>Text</editor> - <name>content</name> - <number>4</number> - <prettyName>Content</prettyName> - <rows>25</rows> - <size>120</size> - <unmodifiable>0</unmodifiable> - <classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType> - </content> - <description> - <disabled>0</disabled> - <editor>Text</editor> - <name>description</name> - <number>3</number> - <prettyName>Description</prettyName> - <rows>5</rows> - <size>40</size> - <unmodifiable>0</unmodifiable> - <classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType> - </description> - <name> - <disabled>0</disabled> - <name>name</name> - <number>1</number> - <prettyName>Name</prettyName> - <size>40</size> - <unmodifiable>0</unmodifiable> - <classType>com.xpn.xwiki.objects.classes.StringClass</classType> - </name> - <type> - <cache>0</cache> - <disabled>0</disabled> - <displayType>select</displayType> - <multiSelect>0</multiSelect> - <name>type</name> - <number>2</number> - <prettyName>Panel type</prettyName> - <relationalStorage>0</relationalStorage> - <separator> </separator> - <separators> ,|</separators> - <size>1</size> - <unmodifiable>0</unmodifiable> - <values>view|edit</values> - <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType> - </type> - </class> - <property> - <category>Information</category> - </property> - <property> - <content>{{velocity}} -#panelheader($services.localization.render('xe.panels.orphaned')) -#set ($homepage = $services.wiki.getById($services.wiki.currentWikiId).mainPageReference) -#set ($homepageFullName = $services.model.serialize($homepage, 'local')) -#foreach ($item in $services.query.xwql('where doc.parent is null or doc.parent='''' and doc.fullName <> :homepage order by doc.name asc').bindValue('homepage', $homepageFullName).addFilter('hidden').execute()) - #if ($xwiki.hasAccessLevel('view', $xcontext.user, "${xcontext.database}:${item}")) - #set ($bentrydoc = $xwiki.getDocument($item)) - * [[${bentrydoc.fullName}]] - #end -#end -#panelfooter() -{{/velocity}}</content> - </property> - <property> - <description>List pages that have no parent defined.</description> - </property> - <property> - <name>Orphaned Pages</name> - </property> - <property> - <type>view</type> - </property> - </object> -</xwikidoc>