Campsite 2.3 User Guide

Campsite 2.3 User Guide

Select your language:  
    Search:   
<5.3.17. Include        5.3.19. If Issue>

Print / Download:
Available languages: english Last update: 2005-08-16 09:53:59

5.3.18. If Publication

Purpose:

Depending on the given condition, it runs the first or second list of instructions. It may be used anywhere in the template. It is used when printing information for a certain publication.

Syntax:

If [not] Publication <condition>
<list_of_instructions>
[Else [<list_of_instructions>]]
EndIf [Publication]

<condition>=

name <string_operator> <string_value>
|identifier
<integer_operator> <integer_value>
|defined
|fromstart

  • name: the if condition is true if actual publication name is in <string_operator> relation with <string_value>

  • identifier: the if condition is true if actual publication identifier is <integer_value>

  • defined: the if condition is true if publication parameter is defined

  • fromstart: the if condition is true if actual value of publication parameter is equal with the value from template start

The list of instructions may contain any instruction allowed in the current context. If it is used inside a list, it must respect the constraints of the list (List Issue, List Section, List Article, List Subtitle, List SearchResult).

Constraints:

None.


add a note add a note User Contributed Notes
5.3.18. If Publication
There are no user contributed notes for this page.

<5.3.17. Include 5.3.19. If Issue>

  Last update: 2005-08-16 09:53:59
Website powered by Docmint Last update: 2005-08-16 09:53:59
Total page time: 1.1270070076