Wiki source code of EditOneObject

Last modified by ElenaOanaTabaranu on 2009/04/03 17:34

Hide last authors
ElenaOanaTabaranu 1.1 1
2 #warning("This is a draft about How to edit only one XWiki object from a XWiki document")
3
ElenaOanaTabaranu 15.1 4 1 Edit only one XWiki object for a XWiki document
ElenaOanaTabaranu 1.1 5
6 Each time you save a XWiki document in your browser all the expanded objects will be collapsed and only the first object from the list will be expanded.
ElenaOanaTabaranu 9.1 7 To avoid this default behavior, you might want to edit just one object at a time by adding the following parameters to your link:
ElenaOanaTabaranu 3.1 8 {table}
9 Parameter|Parameter Description
10 classname|class name selecting the type of objects to display
11 classid|object index
12 object|object index
13 property|property name to display
14 nb|object index
15 {table}
ElenaOanaTabaranu 1.1 16
ElenaOanaTabaranu 12.1 17 For example, when editing the default XWiki skin you can use this link: *{pre}http://localhost:8080/xwiki/bin/edit/XWiki/DefaultSkin?editor=object{/pre}*
ElenaOanaTabaranu 14.1 18
ElenaOanaTabaranu 12.1 19 {image:editall.png}
ElenaOanaTabaranu 1.1 20
ElenaOanaTabaranu 12.1 21 Or edit only the XWiki.XWikiSkins object with this link: *{pre}http://localhost:8080/xwiki/bin/edit/XWiki/DefaultSkin?editor=object&classname=XWiki.XWikiSkins&nb=0{/pre}*
ElenaOanaTabaranu 14.1 22
ElenaOanaTabaranu 12.1 23 {image:editoneobject.png}
ElenaOanaTabaranu 1.1 24
25
26
ElenaOanaTabaranu 5.1 27
28
29

Get Connected