Wiki source code of EditOneObject
Last modified by ElenaOanaTabaranu on 2009/04/03 17:34
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | |||
| 2 | #warning("This is a draft about How to edit only one XWiki object from a XWiki document") | ||
| 3 | |||
| 4 | 1 Edit only one XWiki object for a XWiki document | ||
| 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. | ||
| 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: | ||
| 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} | ||
| 16 | |||
| 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}* | ||
| 18 | |||
| 19 | {image:editall.png} | ||
| 20 | |||
| 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}* | ||
| 22 | |||
| 23 | {image:editoneobject.png} | ||
| 24 | |||
| 25 | |||
| 26 | |||
| 27 | |||
| 28 |