Consortium
Activities
Projects
Forge
Events
Log-in
Register
Welcome to the Class Editor
Space Menu
Consortium
|
Solutions
|
Middleware
|
Forge
|
MyObjectWeb
|
PDF
|
History
|
More Actions
View
Code
|
XML
|
Help
Documentation
|
XWiki Syntax
|
#includeTopic("XWiki.XWikiCommonJavascript") 1 Welcome to the Class Editor This tools allows to work on the classes on your wiki. Before working on the classes, you should read the FAQ entry [What is a Class>http://www.xwiki.com/xwiki/bin/view/Doc/WhatIsAClass] #if(($xwiki.hasAdminRights())&&($context.database.equals("xwiki"))) 1.1 Models Here are the templates and sheets for creating new classes. * [ClassSheet] * [ClassTemplate] * [ClassItemSheet] * [ClassItemTemplate] #end 1.1 Create a new Class To create a new class you must first choose the name of your class and click on the button "Create this Class". This will automatically create a document for you class and redirect you to this document where you will be able to follow the instructions to make your class usable. Choose a simple name like 'Film', 'Book', 'Article'. XWiki will happend 'Class' at the end automatically. <form action=""> <input type="hidden" name="parent" value="XWiki.XWikiClasses"> <input type="hidden" name="template" value="XWiki.ClassTemplate"> <input type="hidden" name="sheet" value="1"> Web: <input type="text" name="webname" value="XWiki"> Classe: <input type="text" name="name" value="Name of the Class" onchange="updateName(this)"> <br /> <br /> <input type="button" value="Create this Class" onclick='action="../../edit/" + this.form.webname.value + "/" + this.form.name.value + "Class"; this.form.submit();'> </form> 1.1 Existing Classes #foreach ($classname in $xwiki.classList) * [$classname] #end