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

Archives Lists : Creating the "Date Grouping" list

Let's start with the "Archives list", which is a list of links in a date format, leading to the archives pages.
The format is commonly: "date of the oldest entry - date of the most recent entry".
Example: 10/25/02 - 11/03/02 , which is a link leading to the Archives Main page displaying all entries posted between October 25 and November 03.


Here is the html code you need to type in the "Date grouping layout for archives list" field to obtain the above exemple:
<a href="!!archurl!!">!!oldmonth!!/!!oldday!!/!!oldyear!! -
!!newmonth!!/!!newday!!/!!newyear!!</a>

As you may have guessed, the !!archurl!! variable includes the url (address) of the Archives Main page.
Every "date grouping" will include a number of entries which you can specify on the options page. For exemple, if you chose to display five entries per Archives page, and you have posted 20 entries so far, there will be 20 / 5 = 4 Date groupings.

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.

Exemple of four date grouping in a row:

10/25/02 - 11/03/02
11/04/02 - 11/10/02
11/12/02 - 11/16/02
11/17/02 - 11/22/02
© Upsaid.com, 2001 - 2003 Contact us - Privacy policy - Terms of use