Consortium
Activities
Projects
Forge
Events
Log-in
Register
Add a news
Space Menu
Consortium
|
Solutions
|
Middleware
|
Forge
|
MyObjectWeb
|
PDF
|
History
|
More Actions
View
Code
|
XML
|
Help
Documentation
|
XWiki Syntax
|
#if($hasedit) <div> #set($blogcatdoc = $xwiki.getDocument("Blog.Categories")) 1.1 News <font size="-2">(<a href="$blogcatdoc.getURL("inline")">Edit Categories</a>)</font> #set($catdoc = $xwiki.getDocument("Blog.Categories")) #foreach($catobj in $catdoc.getObjects("Blog.Categories")) #set($catname = $catdoc.display("name","view",$catobj)) #if($catname!="") * [${catname}>Blog.Category?category=${catname}] #end #end </div> <div> 1.1 Add a News #includeTopic("XWiki.XWikiCommonJavascript") <form action="" id="newdoc"> <input type="hidden" name="parent" value="Main.WebHome" /> <input type="hidden" name="template" value="XWiki.ArticleClassTemplate" /> <input type="hidden" name="sheet" value="1" /> <input type="hidden" name="webname" value="News"/> <input type="hidden" name="name" value=""/> <input type="text" name="title" value="page name" size="18"/> <input type="button" value="Add this news" onclick='if (updateName(this.form.title,this.form.name)) { action="../inline/" + this.form.webname.value + "/" + this.form.name.value; this.form.submit(); }' /> </form> </div> #else You don't have the right to see this page. #end