Panels
ClassSwitcher
en
0
Panels.WebHome
XWiki.Admin
xwiki:XWiki.msladek
xwiki:XWiki.msladek
1154079605000
1539796411000
1539796411000
1.1

#

Imported from XAR
false
xwiki/1.0
false
Panels.PanelClass
0
0
select
0
category
5
Category
0
,|
1
0
Information|Navigation|Tools|Administration|Other
com.xpn.xwiki.objects.classes.StaticListClass
0
Text
content
4
Content
25
60
0
com.xpn.xwiki.objects.classes.TextAreaClass
0
Text
description
3
Description
5
40
0
com.xpn.xwiki.objects.classes.TextAreaClass
0
name
1
Name
40
0
com.xpn.xwiki.objects.classes.StringClass
0 0 select 0 type 2 Panel type 0 ,| 1 0 view|edit com.xpn.xwiki.objects.classes.StaticListClass
Panels.ClassSwitcher
0
Panels.PanelClass
32c7090e-d98d-415f-965d-b3319b10cca7
Tools #largepanelheader('Class Switcher') ##$xwiki.jsx.use('Panels.ClassSwitcher')## <div> <form id="changeclass" method="post" action="$doc.getURL("redirect")"> <div> <select id="classname" name="xredirect" size="1"> <option value="-">Edit another class</option> ## ## Existing classes are enumerated, grouped by space name. ## The list is already sorted alphabetically ## #set($prevSpace = "") #set($optGroupOpen = false) #foreach ($classname in $xwiki.classList) #if($!xwiki.hasAccessLevel("edit", $classname)) #set($classdoc = $xwiki.getDocument($classname)) #if($classdoc.space != $prevSpace) #if($optGroupOpen) </optgroup> #else #set($optGroupOpen = true) #end <optgroup label="$classdoc.space"> #set($prevSpace = $classdoc.space) #end <option value="$classdoc.getURL("edit", "editor=class")">$classdoc.name</option> #end #end #if($optGroupOpen) </optgroup> #end </select> <span class="buttonwrapper"><input class="button" type="submit" value="$msg.get("changeclass")"/></span></div> #warning($msg.get('xe.panels.classedit.unsavedchanges')) </form> </div> #panelfooter() Form that allows choosing the class for the object to be added to the current document. Class Switcher edit
XWiki.JavaScriptExtension
0
0
select
0
cache
5
Caching policy
0
,|
1
0
long|short|default|forbid
com.xpn.xwiki.objects.classes.StaticListClass
0
code
2
Code
20
50
0
com.xpn.xwiki.objects.classes.TextAreaClass
0
name
1
Name
30
0
com.xpn.xwiki.objects.classes.StringClass
0
select
yesno
parse
4
Parse content
0
com.xpn.xwiki.objects.classes.BooleanClass
0
0
select
0
use
3
Use this extension
0
,|
1
0
onDemand=On demand|always=Always
com.xpn.xwiki.objects.classes.StaticListClass
Panels.ClassSwitcher
0
XWiki.JavaScriptExtension
951b5864-df3e-46d0-bdbe-bac923e58dc8
long `document.observe('dom:loaded', function() { var switcher = $('classname'); if(typeof (switcher) != 'undefined') { switcher.observe('change', function() { var value = this.options[this.selectedIndex].value; if (value != '-') { window.self.location = value; } }.bindAsEventListener(switcher)); switcher.up('form').down("input[type='submit']").hide(); } });` Instant class switcher 0 onDemand
#includeForm("Panels.PanelSheet")