Re: Displaying latest articles

Stéphane Croisier <[email protected]>
Newsgroups gmane.comp.cms.jahia.template
Message-ID <[email protected]>
At 22:51 15/03/2005, you wrote:
>Say I have a front page.  I wish part of this page to display a portlet
>called "recent articles".  This would be a portlet containing a list with
>short-text descriptions (if a short-text page description was originally
>entered in the page its describes).  This list would display the last 10 or
>25 articles that were created on the portal (anywhere).  However, the
>displayed articles must only be those that the current user has access to
>read in the first place.  The generation of the list needs to be automatic
>-- no administrative intervention.  Perhaps a separate view for "public"
>viewers and those logged in?
>
>This would seem to be a fairly common need, so I am hoping that at least one
>of you have implemented a similar system and are willing to share
>code/insights on its implementation.

We have a filter called ContainerFilterByContainerDefinition that allows to 
retrieve all the containers from all the container lists that have a 
certain name, such as "News". Be careful though because this does imply 
some performance cost.

>I hate to bring up the calendar portlet again, but any ideas for
>implementing a calendar (public listing of events and seminars that viewers
>can sort by month and topic category)?  This would also seem to be a common
>need...

Two options:
- You develop a kind of "blog-like" template with some filters on dates on 
the containerlist events. We will package something like that in Jahia 4.1 
by default (next month)
- You wait for Jahia 4.5 with the new JSR168 support. We integrated a full 
calendar + synchronization module. More info here: 
http://cvspub.jahia.org/cgi-bin/cvsweb.cgi/uwcal_JSR168/docs/

Cheers,
Stéphane



>Thanks!!!
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.