Thank you all for your input. Here is a snippet of code that solves my
problem.
{{include document="Blog.BlogCode"/}}
{{velocity filter="none"}}
{{html clean="false" wiki="true"}}
#set($blogDoc = $xwiki.getDocument("Blog.Webhome"))
#getBlogEntries($blogDoc $entries)
#foreach ($entryDoc in $xwiki.wrapDocs($entries))
#getEntryObject($entryDoc $entryObj)
#if($entryObj.getxWikiClass().getName() == $blogPostClassname)
#set($categories = $entryObj.getProperty('category').value)
#set($first = true)
#if($categories.size() > 0)
#foreach($category in $categories)
## Do not indent
#set($categoryDoc = $!xwiki.getDocument($category))
#set($result =
"$!categoryDoc.getObject(${blogCategoryClassname}).getProperty('name').value.trim()")
#if($result == 'Category1234')
#displayEntry($entryDoc $entryObj true true)
#end
#end
#end
#end
#end
{{/html}}
{{/velocity}}
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Display-Blog-of-specific-Category-on-Main…
Sent from the XWiki- Users mailing list archive at
Nabble.com.