<?xml version="1.0" encoding="UTF-8"?>

<xwikidoc>
<web>XWiki</web>
<name>AddNews</name>
<language></language>
<defaultLanguage>en</defaultLanguage>
<translation>0</translation>
<parent>XWiki.WebHome</parent>
<creator>xwiki:XWiki.moghrabi</creator>
<author>xwiki:XWiki.moghrabi</author>
<contentAuthor>xwiki:XWiki.moghrabi</contentAuthor>
<creationDate>1151504508000</creationDate>
<date>1151504515000</date>
<contentUpdateDate>1151504515000</contentUpdateDate>
<version>1.2</version>
<title>Add a news</title>
<template></template>
<content>#if($hasedit)
&lt;div&gt;
#set($blogcatdoc = $xwiki.getDocument("Blog.Categories"))
1.1 News &lt;font size="-2"&gt;(&lt;a href="$blogcatdoc.getURL("inline")"&gt;Edit Categories&lt;/a&gt;)&lt;/font&gt;

#set($catdoc = $xwiki.getDocument("Blog.Categories"))
#foreach($catobj in $catdoc.getObjects("Blog.Categories"))
#set($catname = $catdoc.display("name","view",$catobj))
#if($catname!="")
* [${catname}&gt;Blog.Category?category=${catname}]
#end
#end
&lt;/div&gt;

&lt;div&gt;
1.1 Add a News
#includeTopic("XWiki.XWikiCommonJavascript")
&lt;form action="" id="newdoc"&gt;
&lt;input type="hidden" name="parent" value="Main.WebHome" /&gt;
&lt;input type="hidden" name="template" value="XWiki.ArticleClassTemplate" /&gt;
&lt;input type="hidden" name="sheet" value="1" /&gt;
&lt;input type="hidden" name="webname" value="News"/&gt;
&lt;input type="hidden" name="name" value=""/&gt;
&lt;input type="text" name="title" value="page name" size="18"/&gt;
&lt;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(); }' /&gt;
&lt;/form&gt;
&lt;/div&gt;
#else 
You don't have the right to see this page.
#end</content>
<renderedcontent>You don't have the right to see this page.
</renderedcontent>
</xwikidoc>