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
Hide line numbers
1: #includeMacros("Blog.CategoriesCode") 2: #if($doc.getObject($blogCategoryClassname)) 3: 1 $doc.display("name") 4: #info("$doc.display('description')") 5: 6: #if($context.action != "inline") 7: 1.1.1 Subcategories 8: #if($hasEdit) 9: <div style="float: right; width: 60%"> 10: <div class="plainmessage"> 11: <fieldset> 12: <legend>Add new subcategory</legend> 13: #set($parentCategory = $doc.fullName) 14: #includeTopic("Blog.AddCategory") 15: </fieldset> 16: </div> 17: </div> 18: #end 19: #getCategoriesHierarchy($doc.space $tree) 20: #displayCategoriesHierarchyRecursive($tree $doc.fullName 1 'simple') 21: <div class="clearfloats"></div> 22: 23: 1.1.1 Articles from this category 24: #getEntriesForCategory($doc.fullName $entries $total) 25: #displayBlog($entries 'category' true) 26: ## displayNavigationLinks requires a blog document, to determine how should the entries be split into pages. Return this 27: ## document, as the macro fallbacks to 'paginated' in case the right setting cannot be determined. 28: #displayNavigationLinks($doc) 29: #end 30: #elseif($doc.fullName == $blogCategorySheet) 31: 1 Category sheet 32: This sheet should be used to display blog categories. 33: #else 34: #warning('This is not a blog category!') 35: #end
Quick Links
L3D Calendar
Wiki Dashboard
Document Index
Blog
Sandbox