Campsite 2.3 User Guide

Campsite 2.3 User Guide

Select your language:  
    Search:   
<5.3.18. If Publication        5.3.20. If Section>

Print / Download:
Available languages: english Last update: 2005-08-16 09:55:17

5.3.19. If Issue

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 issue.

Syntax:

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

where

<condition>=

name <string_operator> <string_value>
|number
<integer_operator> <integer_value>
|publish_date
<date_operator> <date_value>
|iscurrent |defined |fromstart

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

  • number: the if condition is true if actual issue number is in <integer_operator> relation with <integer_value>

  • publish_date: the if condition is true if actual issue publish date is in <date_operator> relation with <date_value>

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

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

  • iscurrent: the if condition is true if actual issue is the current issue (the last published issue)

Example:

<!** If Issue number is 1>
This is Issue number 1
<!** EndIf>

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.19. If Issue
There are no user contributed notes for this page.

<5.3.18. If Publication 5.3.20. If Section>

  Last update: 2005-08-16 09:55:17
Website powered by Docmint Last update: 2005-08-16 09:55:17
Total page time: 0.841153144836