General Actions:
Log-in
Wiki:
L3D's Wiki
▼
:
Document Index
»
Space:
Blog
▼
:
Document Index
»
Page:
CategorySheet
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 Category class
»
Sheet for displaying blog categories
Wiki source code of
Sheet for displaying blog categories
Last modified by
Administrator
on 2008/11/15 23:45
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
#includeMacros("Blog.CategoriesCode") #if($doc.getObject($blogCategoryClassname)) 1 $doc.display("name") #info("$doc.display('description')") #if($context.action != "inline") 1.1.1 Subcategories #if($hasEdit) <div style="float: right; width: 60%"> <div class="plainmessage"> <fieldset> <legend>Add new subcategory</legend> #set($parentCategory = $doc.fullName) #includeTopic("Blog.AddCategory") </fieldset> </div> </div> #end #getCategoriesHierarchy($doc.space $tree) #displayCategoriesHierarchyRecursive($tree $doc.fullName 1 'simple') <div class="clearfloats"></div> 1.1.1 Articles from this category #getEntriesForCategory($doc.fullName $entries $total) #displayBlog($entries 'category' true) ## displayNavigationLinks requires a blog document, to determine how should the entries be split into pages. Return this ## document, as the macro fallbacks to 'paginated' in case the right setting cannot be determined. #displayNavigationLinks($doc) #end #elseif($doc.fullName == $blogCategorySheet) 1 Category sheet This sheet should be used to display blog categories. #else #warning('This is not a blog category!') #end
Quick Links
L3D Calendar
Wiki Dashboard
Document Index
Blog
Sandbox