Home Sign up Features Members Forums Control menu Search
Upsaid templates tutorials

Archives Lists : Creating the "Categories" list

Let's now see how the categories list can be build. Each entry of this list should be a link to the archives pages containing all entries posted on this category. The url of this page can be displayed using the !!cat_archives_url!!. Besides this link, it is common to display the amount of entries related to this category, which is done using the !!entries_count!! variable. It is also possible to display the category's description using the !!cat_description!! variable, though we will not do so in this example for simplicity's sake.

Here is our example of what should be typed in the "Category template" field:

<a href="!!cat_archives_url!!">!!category!!</a> (!!entries_count!!)

You may also specify a separator which will be included between each date grouping. In our exemple, we would simply type <br /> in the "Date Grouping separator" field.

This is what our example would look like if three categories have been created:

General (28)
Work (7)
Friends (12)
© Upsaid.com, 2001 - 2003 Contact us - Privacy policy - Terms of use