Changeset 2467


Ignore:
Timestamp:
07/07/08 17:26:46 (11 years ago)
Author:
anonymous
Message:

Fixed showing recent posts in community front page.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LargeSectionFolder.py

    r2464 r2467  
    13141314 
    13151315    def mergeLatestPostsInMyGroups(self): 
     1316        """ Method to help displaying latest posts in section front page """ 
    13161317        mtool = getToolByName(self, "portal_membership") 
    13171318        memberfolder=mtool.getHomeFolder() 
    13181319        if not memberfolder: 
    13191320            return [] 
    1320         glist=[g.id for g in memberfolder.getGroups(objects=False)] 
     1321        glist=[g.getId for g in memberfolder.getGroups(objects=False)] 
    13211322        pc=getToolByName(self, 'portal_catalog') 
    1322         posts=pc({'getParentBlog':glist, 'getState':'public', 'sort_by':'CreationDate'})         
     1323        posts=pc({'getParentBlog':glist, 'getState':'public', 'sort_on':'created'})  
    13231324        return posts[:20] 
    13241325                                     
  • trunk/skins/lemill/lemill_community_view.pt

    r2409 r2467  
    117117               </tr> 
    118118               <tr tal:repeat="post recents"> 
    119                    <td><a href="" tal:attributes="href post/absolute_url" tal:content="post/title">PLACEHOLDER</a></td> 
     119                   <td><a href="" tal:attributes="href post/getURL" tal:content="post/Title">PLACEHOLDER</a></td> 
    120120                   <td tal:define="group python:here.getGroupById(post.getParentBlog)"><a href="" tal:attributes="href group/absolute_url" tal:content="group/title">PLACEHOLDER</a></td> 
    121121               </tr> 
Note: See TracChangeset for help on using the changeset viewer.