Campsite 2.3 User Guide

Campsite 2.3 User Guide

Select your language:  
    Search:   
<5.3.8. Topic        5.3.10. List of Sections>

Print / Download:
Available languages: english Last update: 2005-08-15 17:46:05

5.3.9. List of Issues

Purpose:

Select the list of issues according to the given constraints and current environmental parameters. The Publication, Language, Issue parameters may not be defined outside List Issue statement; inside the statement however, all these parameters are defined. The code between "List ... Article ..." statement and "ForEmptyList" (if used) or "EndList" is repeated for every article in the list. When the list of article is empty the code in between "ForEmptyList" and "EndList" is executed once.

Syntax:

List [length <integer_value>] [columns <integer_value>]

Issue [<list_of_issue_constraints>] [order <order_condition>]

<list_of_instructions>

[ForEmptyList [<list_of_instructions>]]

EndList [Issue]

where

length <integer_value> where <integer_value> specifies list_length forces the list to have at most list_length items. If the list contains more items than list_length items the ones not fitting in can be listed using If NextItems/PreviousItems statements.

columns <integer_value> where <integer_value> specifies columns_number sets an environment variable. This is incremented as if the items would be placed in a table cell. The counting starts from one and the variable is incremented for every new element. When it reaches the maximum value it is reset to one. This is very useful in building tables of data. For details see If List.

<list_of_instructions> may contain any statement except: "Language", "Publication", "List Issue", "Issue".

<list_of_issue_constraints>=

[<issue_constraint>] <list_of_issue_constraints>
| <issue_constraint>

<issue_constraint>=

number <integer_operator> <integer_value>
|name
<string_operator> <string_value>
|publish_date
<date_operator> <date_value>
|publish_year
<integer_operator> <integer_value>
|publish_month
<integer_operator> <integer_value>
|publish_mday
<integer_operator> <integer_value>
|
<date_constraint>

<date_constraint>=

year <integer_operator> <integer_value>
|mon_nr
<integer_operator> <integer_value>
|mday
<integer_operator> <integer_value>
|yday
<integer_operator> <integer_value>
|wday_nr
<integer_operator> <integer_value>
|hour
<integer_operator> <integer_value>
|min
<integer_operator> <integer_value>
|sec
<integer_operator> <integer_value>

<order_condition>=

bydate desc|asc
|bynumber desc|asc

|byname desc|asc

where year stands for year, mon_nr for month number (1..12), mday for month day (1..31), yday for year day (1..365), wday for week day (1..7), hour for hour, min for minute and sec for second.

Any parameter used in <list_of_issue_constraints> can only be used once.

Inside the List the following environment variables are modified:

  • language: if not defined before list start

  • publication: if not defined before list start

  • issue

The environment is restored after the list ends.

Constraints:

Inside List Issue the following statements are forbidden:

  • Language

  • Publication

  • List Issue

  • Issue

List Issue statement can not be used inside List Section, List Article, List Subtittle, List SearchResults statements.


add a note add a note User Contributed Notes
5.3.9. List of Issues
There are no user contributed notes for this page.

<5.3.8. Topic 5.3.10. List of Sections>

  Last update: 2005-08-15 17:46:05
Website powered by Docmint Last update: 2005-08-15 17:46:05
Total page time: 1.09276080132