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
Hide line numbers
1: 2: #if($request.webname && $request.name) 3: #if($request.name.endsWith("Class")) 4: #set($docname="${request.webname}.${request.name}") 5: #else 6: #set($docname="${request.webname}.${request.name}Class") 7: #end 8: $response.sendRedirect($xwiki.getURL($context.util.noaccents($docname), "edit", "editor=wiki&template=$!{request.template}&sheet=$!{request.sheet}&parent=$!{request.parent}")) 9: #end 10: 1 Welcome to the Class Editor 11: 12: 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] 13: 14: #if($xwiki.hasAdminRights()) 15: 1.1 Models 16: 17: Here are the templates and sheets for creating new classes. 18: 19: * [ClassSheet] 20: * [ClassTemplate] 21: * [ClassItemSheet] 22: * [ClassItemTemplate] 23: 24: #end 25: 26: 1.1 Create a new Class 27: 28: To create a new class you must first choose the name of your class and click on the button 29: "Create this Class". This will automatically create a document for you class and redirect 30: you to this document where you will be able to follow the instructions to make your class usable. 31: 32: Choose a simple name like ’Film’, ’Book’, ’Article’. XWiki will append ’Class’ at the end automatically. 33: 34: <form action="$doc.getURL("view", "xpage=plain")" method="post"> 35: <div> 36: <input type="hidden" name="parent" value="XWiki.XWikiClasses"/> 37: <input type="hidden" name="template" value="XWiki.ClassTemplate"/> 38: <input type="hidden" name="sheet" value="1"/> 39: Web: <input type="text" name="webname" value="XWiki"/> 40: Class: <input type="text" name="name" value="Name of the class" 41: onchange="updateName(this)" 42: onfocus=’if(this.value=="Name of the class") this.value=""; else this.select();’ 43: onblur=’if(this.value=="") this.value="Name of the class";’/> 44: <br/> 45: <br/> 46: <input type="submit" value="Create this Class" /> 47: </div> 48: </form> 49: 50: 1.1 Existing Classes 51: 52: #foreach ($classname in $xwiki.classList) 53: * [$classname] 54: #end
Search
Quick Links
Wiki Dashboard
Document Index
Blog
Sandbox
My Recent Modifications
dany
|
marco