The Firedrop ItemList content type |
:: Email ::
Download area
|
ItemListThe ItemList content type can be used to group various nodes together on pages, in a certain order. If that sounds vague, think of a FAQ; however, ItemList can be used for other things as well. On each page, a number of nodes will be displayed, much like in a Weblog: 1. What is Firedrop? Firedrop is blah blah... 2. Where can I download it? ...text here... 3. How do I create a site? ...text here... And so on. Unlike Weblogs, however, an ItemList page is created by taking nodes in a certain category, then ordering them by the order attribute. For example: insert_date='2004-02-12 22:26:00' modified_date='2004-02-12 22:28:33' order=1 page='firedrop' -- What is Firedrop? blah blah The The TemplatesThe ItemList object has a special method, <% publisher.make_list_html(current_entries) %> Both A sample entry template, that displays the item's number, may look like this: <p> <a name="<% entry_number %>"></a> <h3><% entry_number %>. <% entry.title %></h3> <% entry_body %> </p>
Separate pagesNormally, most nodes will belong to a category, and thus their content will show up on a category page. However, it is also possible to create a separate page (much like in an ArticleCollection). This is useful for creating an index page with links to the category pages, for example. You can make a separate page by setting an entry's To make matters easier, a default node for an index page is generated when you create a site of type ItemList. |