Campsite 2.3 User Guide

Campsite 2.3 User Guide

Select your language:  
    Search:   
<5.3.9. List of Issues        5.3.11. List of Articles>

Print / Download:
Available languages: english Last update: 2005-08-15 18:04:40

5.3.10. List of Sections

Purpose:

Select the list of sections according to the given constraints and current environmental parameters. The Publication, Language, Issue, Section parameters may not be defined outside List Section 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>]
Section [<list_of_section_constraints>] <list_of_instructions> [ForEmptyList [<list_of_instructions>]]
EndList [Section]

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 Section", "Section".

<list_of_section_constraints>=

[<section_constraint>] <list_of_section_constraints>
| <section_constraint>

<section_constraint>=

name <string_operator> <string_value>
| number
<integer_operator> <integer_value>

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

Inside List Section, the data context is defined by the constraints applied to the current section for every processed line. The data context is restored after the list processing.

Constraints:

Inside List Section the following statements are forbidden:

  • Language

  • Publication

  • List Issue

  • Issue

  • List Section

  • Section

List Section statement cannot be used inside List Article, List Subtitle, List SearchResult statements.


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

<5.3.9. List of Issues 5.3.11. List of Articles>

  Last update: 2005-08-15 18:04:40
Website powered by Docmint Last update: 2005-08-15 18:04:40
Total page time: 0.811330080032