General Actions:
Log-in
Wiki:
L3D's Wiki
▼
:
Document Index
»
Space:
Blog
▼
:
Document Index
»
Page:
ManageCategories
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Welcome to your wiki
»
Wiki blog
»
Blog categories
»
Manage blog categories
Wiki source code of
Manage blog categories
Last modified by
Administrator
on 2008/11/20 23:56
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
#set($space = "$!request.space") #includeMacros("Blog.CategoriesCode") 1 Manage blog categories 1.1 Existing categories #if ("$!request.action" == "delete") #foreach($item in $request.getParameterValues("${blogPostClassname}__category")) #deleteCategory($item) #end #elseif("$!request.action" == "create") #set($title = $request.newCategoryName) #set($name = "${doc.space}.${title}") $response.sendRedirect($xwiki.getURL($name, 'save', "template=${blogCategoryTemplate}&parent=${request.newCategoryParent}&title=${title}&${blogCategoryClassname}_0_name=${title}&${blogCategoryClassname}_0_description=&xredirect=${doc.getURL()}")) #end <form action="" method="post"> <div> <input type="hidden" name="action" value="delete"/> #getCategoriesHierarchy("" $tree) #displayCategoriesHierarchy($tree 'selectable') <input type="hidden" name="manage" value="true"/> <input type="submit" name="delete" value="Delete selected categories"/> </div> </form> 1.1 Add a category #showCreateCategoryBox($tree)
Quick Links
L3D Calendar
Wiki Dashboard
Document Index
Blog
Sandbox