Welcome to the Class Editor
Log-in
|
XWiki
:
WebHome
>
Welcome to the Class Editor
Top Menu
Show
:
Comments
Attachments
History
Information
Stampa
:
Stampa
Anteprima di stampa
Esporta come PDF
Esporta in formato RTF
Esporta come HTML
Esporta in formato XAR
Wiki source code of
Welcome to the Class Editor
Show line numbers
#if($request.webname && $request.name) #if($request.name.endsWith("Class")) #set($docname="${request.webname}.${request.name}") #else #set($docname="${request.webname}.${request.name}Class") #end $response.sendRedirect($xwiki.getURL($context.util.noaccents($docname), "edit", "editor=wiki&template=$!{request.template}&sheet=$!{request.sheet}&parent=$!{request.parent}")) #end 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 [developer’s guide>http://www.xwiki.org/xwiki/bin/view/DevGuide/WebHome] #if($xwiki.hasAdminRights()) 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 append ’Class’ at the end automatically. <form action="$doc.getURL("view", "xpage=plain")" method="post"> <div> <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"/> Class: <input type="text" name="name" value="Name of the class" onchange="updateName(this)" onfocus=’if(this.value=="Name of the class") this.value=""; else this.select();’ onblur=’if(this.value=="") this.value="Name of the class";’/> <br/> <br/> <input type="submit" value="Create this Class" /> </div> </form> 1.1 Existing Classes #foreach ($classname in $xwiki.classList) * [$classname] #end
Search
Quick Links
Wiki Dashboard
Document Index
Blog
Sandbox
My Recent Modifications
dany
|
marco