Home
Yet Another Killer Product
Web Portal System
Last modified on Saturday, November 05 2016 - 18:52:42

Global Vars

You can use these variables within your site. They will be replaced by predefined or computed values.

Global Vars that can be used anywhere:
 

Variable Description
   
%image_ref% Is replaced at run-time by the images access path.
Use the following syntax within the <img> tag:
<img src="%image_ref%image_name%">
%resource_ref% Is replaced at run-time by the resources (files that are available on the site) access path.
Use the following syntax within the <a> tag:
<a href="%resource_ref%resource_name%">
%news_ref% Is used to reference a News by its identifier.
Use the following syntax within the <a> tag:
<a href="%news_ref%news_identifier%">
%lastnews%topic_key% Is used to reference the last News of a given topic.
Use the following syntax within the <a> tag:
<a href="%lastnews%topic_key%">
%home% Is used to reference the Home Page.
Use the following syntax within the <a> tag:
<a href="%home%">
%servername% Is replaced at run-time by the domain name of the server.
%sitename% Is replaced at run-time by the Site Name, as defined in the Parameters.
%site_last_modified% Is replaced at run-time by the last modification date of the last added or modified News.
%external_ref%ref_d% Is replaced at run-time by the external reference value ( url address of the external site defined by ref_id) .
%block%block_id% Is replaced at run-time by the specified block content.
The block is displayed according the visitor's privileges.
The block does not need to have the "visible" attribute set.
%var% var_name% Is replaced at run-time by the specified variable content.
The content may depend on both the language and the graphical theme.
There is no privilege associated to variables.
%contact_field%field_name% Is replaced at run-time by the specified contact field value.
The value is displayed according the visitor's privileges.
 
%translate%identifier% Is replaced at run-time by the identifiers's translation according to the language substitution order.
 
%ucfirst%string% Is replaced at run-time by the string with its first character in uppercase.
 



Global Vars that can be only used in News:
 

Variable Description
%news_image%name|cnt% Is replaced at run-time by the header or content image (context dependent) named name or located at rank cnt of the News.
The default image display is overrided by the one that you have defined.
%news_image_ref%name|cnt% Is replaced at run-time by the header or content image access path (context dependant) named name or located at rank cnt of the News .
Use the following syntax within the <img> tag:
<img src="%news_image_ref%image_name|image_rank%">
The default image display is overrided by the one that you have defined.
%news_image_thumbnail%name|cnt% Is replaced at run-time by the header or content thumbnail image (context dependant) named name or located at rank cnt of the News.
The default image display is overrided by the one that you have defined.
%news_image_thumbnail_ref%name|cnt% Is replaced at run-time by the header or content thumbnail image access path (context dependent) named name or located at rank cnt of the News .
Use the following syntax within the <img> tag:
<img src="%news_image_thumbnail_ref%image_name|image_rank%">
The default image display is overrided by the one that you have defined.
%news_resource%name|cnt[|param]% Is replaced at run-time by the news attachment named name or located at rank cnt of.
The default news attachment display is overrided by the one that you have defined.
%news_resource_ref%name|cnt% Is replaced at run-time by the news attachment access path named name or located at rank cnt.
The default news attachment display is overrided by the one that you have defined.
%news_flash%resource_name|cnt[|param1[|param2[|param3]]]%

Is replaced at run-time by the code activating the flash object.
param1 stands for the flash object parameters (width, height,etc.)
param2 stands for the parameters that are given to the flash object ( <param... type lines

%hit_count% Is replaced at run-time by the visit count of the News.
%last_modified% Is replaced at run-time by the last modification date of the News.
%last_hit% Is replaced at run-time by the last visit date of the News.

 

Valid HTML 4.01 Transitional © 2002-2015 ® YAK Pro. All rights reserved. | | |