[Plone-UI] Custom homepage Plone 3

Veda Williams veda at onenw.org
Thu Sep 3 18:21:22 UTC 2009


You can also look at the two different kinds of homepage views in this
theme:

svn co https://svn.plone.org/svn/collective/plonetheme.guria
plonetheme.guria

(Check it out from subversion). One homepage view pulls in the contents of a
Page content type, and one pulls in either a Page or a Collection using a
slots-based solution. The slots solution might work for you here. Using
Collection criteria, you should be able to state how many items you want to
show, rather than doing it programmatically.

Cheers,

- Veda



On 9/3/09 5:57 AM, "Sanders" <nique at webtic.nl> wrote:

> 
> I created a site for moaweb.nl in Plone 3 with a custom homepage.
> It's based on 4 columns where the client can maintain the content completely
> TTW.
> 
> In the custom template I created the following code for the events:
> <ul>
> {% for n in evenementen %}
> <li> {{n.url|safe}} {{n.titel|safe}} </li>
> {% endfor %}
> </ul>
> /MOA/evenementen-en-agenda/evenementen-agenda Overzicht evenementen &raquo;
> 
> How can I adjust this code so that:
> - only the X most recent items in folder X are shown?
> 
> I tried different pieces of python code but only ended up with no content
> shown at all.
> My understandig of this language is very limited and I'm definetly stuck
> here.
> 
> Maybe someone can  give me a push in the right direction?
> 
> Greetings,
> Nique





More information about the UI mailing list