Manage blogs on this wiki
Log-in
|
Blog
:
Welcome to your wiki
>
Wiki blog
>
Manage blogs on this wiki
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
Manage blogs on this wiki
Show line numbers
#includeMacros("Blog.BlogCode") #if($hasAdmin) ## ## ## List existing blogs. ## TODO: Display the number of articles in each blog ## TODO: Provide some management links: delete, edit title, configure... ## 1 $msg.get("xe.blog.manage.existing") #foreach($item in $xwiki.wrapDocs($xwiki.searchDocuments(", BaseObject obj where obj.name = doc.fullName and obj.className = ’$blogClassname’"))) #getBlogTitle($item $title) #if($title != "") * [$title>$item.fullName] #else * [$item.displayTitle>$item.fullName] #end #end ## ## ## New blog ## 1 $msg.get("xe.blog.manage.createnew") #set($title = "$!request.blogTitle") #if($title != ’’) #set($space = "$!request.blogSpace") #if($space == ’’) #warning($msg.get("xe.blog.manage.nospace")) #else #if("$!request.blogType" == ’main’) #set($blogDocName = "${space}.WebHome") #else #set($blogDocName = "${space}.Blog") #end #set($title = $util.encodeURI($title)) #set($parent = ’Main.WebHome’) $response.sendRedirect($xwiki.getURL($blogDocName, ’save’, "parent=${parent}&title=${title}&template=${blogTemplate}&${blogClassname}_0_title=${title}")) #end #end ## ## Show the form <form action="${xwiki.getURL(’Blog.Management’)}" id="newBlog" method="post"> <div> <dl> <dt><label for="blogSpace">$msg.get("xe.blog.manage.space")</label></dt> <dd><input type="text" name="blogSpace" id="blogSpace" value=""/></dd> <dt><label for="blogTitle">$msg.get("xe.blog.manage.title")</label></dt> <dd><input type="text" name="blogTitle" id="blogTitle" value="$msg.get("xe.blog.manage.blogtitle")"/></dd> <dt><label for="blogType">$msg.get("xe.blog.manage.blogtype")</label></dt> <dd><select name="blogType" id="blogType"> <option value="inner" selected="selected">$msg.get("xe.blog.manage.inside")</option> <option value="main">$msg.get("xe.blog.manage.main")</option> </select></dd> </dl> <input type="submit" value="$msg.get("xe.blog.manage.create")"/> </div> </form> #else ## !hasAdmin #xwikimessageboxstart($msg.get("error") $msg.get("notallowed")) #xwikimessageboxend() #end
Recent Blog Posts
The first post of your wiki's blog
Blog Categories
News
(1)
Other
(0)
Personal
(0)
Blog Archive
2009
(1)
Search
Quick Links
Wiki Dashboard
Document Index
Blog
Sandbox
My Recent Modifications
dany
|
marco