Re: get blog list form corresponding category

Gaurav <[email protected]>
Newsgroups gmane.comp.java.roller.user
Message-ID <[email protected]>
Hello,

Is there any way for this getting blog list from corresponding category 
? Waiting for some solution to this, although I have done this in 
velocity with some conditions, but its very heavy as too many iterations 
will be there.

Below code will give the entry from that category and different 
unordered list will be print for each category. I think we can include 
this macro in roller, where we can pass the category and get respective 
blogs from that category.

Code:

#foreach($cat in $cats)
     <ul>
         #foreach( $entry in $entries )
             #if($entry.category.name == $cat.name )
                 <li><a 
href="$url.entry($entry.anchor)">$entry.title</a></li>
             #end
         #end
     </ul>
#end

Thanks
Gaurav

On Thursday 05 December 2013 03:42 PM, Gaurav wrote:
> Hello,
>
> I am working on template, in which I want the main blog page to show 
> all categories and their corresponding blogs. I am able to get the 
> category list but did not understand how, I can get the corresponding 
> blogs list.
>
> There is a macro #showWeblogEntryLinksList($entries) which gives the 
> entriesList but did not have any paramater catagory so we can put the 
> category and get the blog entry list according to category.
>
> Thanks
> Gaurav
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.