Campsite

Environmental Control

In this article:
  • Set Language
  • Set Default Language
  • Unset Language
  • Set Publication
  • Set Default Publication
  • Unset Publication
  • Set Issue
  • Set Current Issue
  • Set Default Issue
  • Unset Issue
  • Set Section
  • Set Default Section
  • Unset Section
  • Set Article
  • Set Default Article
  • Unset Article
  • Set Topic
  • Set Default Topic
  • Unset Topic
  • Unset Comment

 

Set Language

Purpose:

Sets the runtime environment language to the one selected by English name. From this statement on the language is the new chosen one. If the name supplied was not valid this variable is not modified.

Syntax:

{{ set_language name="<language_name>" }}

where <language_name> is the English name of selected language.

Constraints:

Can not be used inside any list statement.

See also "set_default_language", "unset_language".

 

Set Default Language

Purpose:

Sets the runtime environment language to the "default_language".

Syntax:

{{ set_default_language }}

Constraints:

Cannot be used inside any list statement.

See also "set_language", and "unset_language".

 

Unset Language

Purpose:

Unset the runtime environment language. After this statement the language object will not be defined anymore.

Syntax:

{{ unset_language }}
Constraints:

Cannot be used inside "list_articles", "list_article_attachments", "list_article_comments", "list_article_comments", "list_article_topics", "list_article_audio_attachments", "list_search_results" and "list_subtitles" statements.

See also "set_language", and "set_default_language".

  

Set Publication

Purpose:

Sets the runtime environment publication to the one selected by the statement constraint. If the statement constraint was not valid the publication is not changed.

Syntax:

{{ set_publication name="<publication_name>" }}

Select the publication having the specified name. If the name supplied was not valid, this parameter is not modified.

{{ set_publication identifier="<publication_identifier>" }}

Select the publication having the specified identifier. The publication identifier is a unique number associated to the publication and is supplied by the administration interface.

Constraints:

Cannot be used inside any list statement.

See also "set_default_publication", "unset_publication".

 

Set Default Publication

Purpose:

Sets the runtime environment publication to the "default_publication".

Syntax:

{{ set_default_publication }}

Constraints:

Cannot be used inside any list statement.

See also "set_publication", "unset_publication".

 

Unset Publication

Purpose:

Unset the runtime environment publication. After this statement the publication object will not be defined anymore.

Syntax:

{{ unset_publication }}
Constraints:

Cannot be used inside any list statement.

See also "set_publication", "set_default_publication".

 

Set Issue

Purpose:

Sets the runtime environment issue to the one selected by the statement constraint. If the statement constraint was not valid the issue is not changed.

Syntax:

{{ set_issue number="<issue_number>" }}

Select the issue having the specified number. If number supplied was not valid this parameter is not changed.

Constraints:

Cannot be used inside any list statement.

See also "set_default_issue", "set_current_issue", "unset_issue".

 

Set Current Issue

Purpose:

Sets the runtime environment issue to the last published issue.

Syntax:

{{ set_current_issue }}

Constraints:

Cannot be used inside any list statement.

See also "set_issue", "set_default_issue", "unset_issue".

 

Set Default Issue

Purpose:

Sets the runtime environment issue to the "default_issue".

Syntax:

{{ set_default_issue }}

Constraints:

Cannot be used inside any list statement.

See also "set_issue", "set_current_issue", "unset_issue".

 

Unset Issue

Purpose:

Unset the runtime environment issue. After this statement the issue object will not be defined anymore.

Syntax:

{{ unset_issue }}
Constraints:

Cannot be used inside any list statements.

See also "set_issue", "set_current_issue", "set_default_issue".

 

Set Section

Purpose:

Sets the runtime environment section to the one selected by the statement constraint. If the statement constraint was not valid the section is not changed.

Syntax:

{{ set_section name="<section_name>" }}

Select the section having the specified name; this has to be written in the language of the context. If the name supplied was not valid this parameter is not modified.

{{ set_section number="<section_number>" }}

Select the section having the specified number; this is not dependent on context language. If the number supplied was not valid this parameter is not modified.

Constraints:

Cannot be used inside "list_sections", "list_articles", "list_article_attachments", "list_article_comments", "list_article_comments", "list_article_topics", "list_article_audio_attachments", "list_search_results" and "list_subtitles" statements.

See also "set_default_section", "unset_section".

 

Set Default Section

Purpose:

Sets the runtime environment section to the "default_section".

Syntax:

{{ set_default_section }}

Constraints:

Cannot be used inside "list_sections", "list_articles", "list_article_attachments", "list_article_comments", "list_article_comments", "list_article_topics", "list_article_audio_attachments", "list_search_results" and "list_subtitles" statements.

See also "set_section", "unset_section".

 

Unset Section

Purpose:

Unset the runtime environment section. After this statement the section object will not be defined anymore.

Syntax:

{{ unset_section }}
Constraints:

Cannot be used inside "list_sections", "list_articles", "list_article_attachments", "list_article_comments", "list_article_comments", "list_article_topics", "list_article_audio_attachments", "list_search_results" and "list_subtitles" statements.

See also "set_section", "set_default_section".

 

Set Article

Purpose:

Sets the runtime environment article to the one selected by the statement constraint. If the statement constraint was not valid the section is not changed.

Syntax:

{{ set_article name="<article_name>" }}

Select the article having the specified name. If the supplied name was not valid this parameter is not be modified.

{{ set_article number="<article_number>" }}

Select the article having the specified number. If the supplied value was not valid this parameter is not be modified.

Constraints:

Cannot be used inside "list_articles", "list_article_attachments", "list_article_comments", "list_article_comments", "list_article_topics", "list_article_audio_attachments", "list_search_results" and "list_subtitles" statements.

See also "set_default_article", "unset_article".

 

Set Default Article

Purpose:

Sets the runtime environment article to the "default_article".

Syntax:

{{ set_default_article }}
Constraints:

Cannot be used inside "list_articles", "list_article_attachments", "list_article_comments", "list_article_comments", "list_article_topics", "list_article_audio_attachments", "list_search_results" and "list_subtitles" statements.

See also "set_article", "unset_article".

 

Unset Article

Purpose:

Unset the runtime environment article. After this statement the article object will not be defined anymore.

Syntax:

{{ unset_article }}
Constraints:

Cannot be used inside "list_articles", "list_article_attachments", "list_article_comments", "list_article_comments", "list_article_topics", "list_article_audio_attachments", "list_search_results" and "list_subtitles" statements.

See also "set_default_article", "unset_article".

 

Set Topic

Purpose:

Sets the runtime environment topic to the one selected by the statement constraint. If the statement constraint was not valid the topic is not changed. Setting the environment topic will change the behavior of articles list: only articles having that topic will be listed.

E.g.:

{{ set_topic name="test:en" }}
{{ list_articles }}
...
{{ /list_articles }}

This will list only articles having the topic 'test'. The topic is automatically appended to the URL parameters so you don't have to set the topic in the current page.

E.g.:

{{ set_topic name"test:en" }}
<a href="{{ uri }}">text</a>

Syntax:

{{ set_topic name="<topic_name_lang_code>" }}
{{ set_topic identifier="<integer_value>" }}

Select the topic having the specified name-language code or identifier. If the supplied value was not valid this variable is not modified. The name must be written in the following format:

<topic_name_lang_code> = <topic_name>:<language_code>

Examples: sport:en, music:en etc. where 'sport' is the topic name and 'en' is the English language code.

Constraints:

Cannot be used inside "list_articles" and "list_article_topics" statements.

See also "set_default_topic", "unset_topic".

 

Set Default Topic

Purpose:

Sets the runtime environment topic to the "default_topic".

Syntax:

{{ set_default_topic }}

Constraints:

Constraints:

Cannot be used inside "list_articles" and "list_article_topics" statements.

See also "set_topic", "unset_topic".

 

Unset Topic

Purpose:

Unset the runtime environment topic. After this statement the topic object will not be defined anymore.

Syntax:

{{ unset_topic }}
Constraints:

Cannot be used inside "list_articles" and "list_article_topics" statements.

See also "set_default_topic", "unset_topic".

 

Unset Comment

Purpose:

Unset the runtime environment comment. After this statement the comment object will not be defined anymore.

Syntax:

{{ unset_comment }}
Constraints:

Cannot be used inside "list_article_comments" statement.



your comment:
name :
comment :

If you can't read the word, click here
word :