Hi,

> http://demo1.csquaredtech.com/insider-blogs/categories/Legal pages
> (individual category pages) I need to list entries reverse
> chronological.. (latest entry first..) any suggests? I'm looking for
> template now for this page..

A template for category view of COREBlog2 is "ZMI > Plone instance >
portal_skins > COREBlog2 > cbcategory_view". And "batch" var for batch
processing for categories is described here like this:

    batch python:here.getEntryInCategory(category_ids = [here.getInternal_id()],
        batch=True,b_size=b_size,b_start= b_start,full_objects=False);"

The "getEntryInCategory" used here is defined in "Zope instance >
Products > COREBlog2 > content > coreblog2.py" (line 715). And you'll
find it takes "sort_order" argument:
----------------------------------------------------------------------
 715   def getEntryInCategory(self,category_ids,\
 716                      sort_on='Date',sort_order='',\
 717                      batch=False,b_size=0,b_start=0,\
 718                      full_objects=True):
----------------------------------------------------------------------

So, you can list entries in reverse order by adding
"sort_order='reverse'," to getEntryInCategory:

    batch python:here.getEntryInCategory(category_ids = [here.getInternal_id()],
        sort_order='reverse',
        batch=True,b_size=b_size,b_start= b_start,full_objects=False);"

Regards,

-- 
Yusuke NAKAI
mail: [EMAIL PROTECTED]
web: http://nagosui.org
_______________________________________________
COREblog-en mailing list
[email protected]
http://postaria.com/mailman/listinfo/coreblog-en
Unsubscription writing to [EMAIL PROTECTED]

Reply via email to