On Sat, Mar 26, 2011 at 2:11 PM, Jennifer Oxelson
<oxel...@unidata.ucar.edu> wrote:
> Here is a way to do this (it may be a bit of a hack, but it works):
>
> In your weblog.vm file, you will want to modify the $entries that gets sent
> to the _day page to be conditional upon if a category is being displayed:
>
>       #set($pager = $model.getWeblogEntriesPager())
>       #set($dayPage = $model.weblog.getPageByName("_day"))
>             #if($model.weblogCategory)
>           #set($entries = $model.weblogCategory.retrieveWeblogEntries(true))
>            <h2>Entries for: $model.weblogCategory.name</h2>
>           #parse($dayPage.id)
>       #else
>           #set($map = $pager.getEntries())
>           #foreach($day in $map.keySet())
>               #set($entries = $map.get($day))
> #parse($dayPage.id)
>           #end
>       #end
>
> Also, be sure to assign $day to the entry date in _day if you reference it
> anywhere.
>
> Hope this helps...

Thanks for sharing that!

- Dave

--
David M. Johnson
Apache Roller PMC Chair
http://rollerweblogger.org/roller

Reply via email to