imScript Manual


Page information

« Back  |  Next »
Introduction
General information
Text field
Image field
Page information
Links & Menu
Include
Data tags
User data
Date tags
Velocity
API samples
JSP
imScript tags list
RSS feed
<?imcms:metaid?>
This tag returns a MetaId of the current doucument open.

Example:

<a href='/<?imcms:metaid?>'>Click here to reload current page</a>

#param# variable
If your URL is http://domain.com/1001?param=John+Smith, then you can use your 'param' variable value in the template or document.
E.g., setting 'My name is: #param#' in the template would return 'My name is: John Smith'.

<?imcms:section?>
This tag sets the part of the website, to which the current document belongs to.

Attributes:

  • separator - a delimiter sign, which is used to list more then one section. If no separator is set, a ',' sign is used;
  • pre - a list of tags or a text to be used before the list of sections will be returned
  • post - a list of tags or a text to be used after the list of sections will be returned
<?imcms:documentcategories?>
This tag is similar to the <?imcms:sections?> tag, but returns a categories list enstead of the sections list.

Attributes:
  • type - if set, then it shows the category of the document. If is not set, then all the document categories will be returned. Type may be just one;
  • separator - a delimiter sign, which is used to list more then one section. If no separator is set, a ',' sign is used;
  • outputdescription - if set to 'yes' or 'true', then document description will be returned instead. Otherwise ('no' or 'false'), nothing.
  • pre - a list of tags or a text to be used before the return;
  • post - a list of tags or a text to be used after the return.
<?imcms:documentlanguage?>
This tag returns an encoding name of a language, the document is saved with.

Attributs:
  • representation - if not set, then a browser default setting will be used. Otherwise, the encoding set in the document will be used.
  • pre - a list of tags or a text to be used before the return;
  • post - a list of tags or a text to be used after the return.

Example 1:

<meta http-equiv="Content-Type" content="text/html; charset=<?imcms:documentlanguage?>">

Example 2:

<?imcms:documentlanguage pre='<meta http-equiv="Content-Type" content="text/html; charset=' post='">'?>

[Help for the whole system | imScript manual | All documentation]

Suggestions or comments? Please send us a mail: info@imcode.com