User Tools

Site Tools


variables_you_can_use_in_lucy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
variables_you_can_use_in_lucy [2019/04/07 22:04]
lucy [Message Template Variables]
variables_you_can_use_in_lucy [2019/04/07 22:06] (current)
lucy
Line 1: Line 1:
 ===== Landing Page Variables ===== ===== Landing Page Variables =====
  
-==== Path name ==== +  ​* %static% — path to static directory. It may be useful to make references to CSS/JS files from the HTML page. For example: <link rel="​stylesheet"​ type="​text/​css"​ href="​%static%/​style.css">​ <script src="%static%/​script.js"></​script>​ 
- +  * %link% — base link of the scenario. Use it in navigation for constructing absolute URLs.
-You may use the following variables in the template: +
-  ​* %static% — path to static directory. It may be useful to make references to CSS/JS files from the HTML page. For example:<link rel="​stylesheet"​ type="​text/​css"​ href="​%static%/​style.css"> ​or <script src="​static%/​script.js"></​script>​ +
- +
- +
-==== Other variables that can be used within the landing page ==== +
- +
-  * %link% — base link of the scenario. Use it in navigation for constructing absolute URLs. The %link% gets replaced in a campaign with the domain/ip which is defined in the scenario settings.+
   * %name% — recipient name   * %name% — recipient name
-  ​* %redirect% —  the Redirect URL +  * %email% — recipient ​email address
-  ​* %email% — recipient ​e-mail ​address+
   * %message% — error message (if any)   * %message% — error message (if any)
-  * %link-awareness% — link to awareness website. You should configure & enable awareness website in campaign settings for this feature to work. +  * %link-awareness% — link to the awareness website. You should configure & enable ​the awareness website in campaign settings for this feature to work. 
-  * %division%%location%%staff-type%%comment% — recipient related information. +  * %division% 
-  * ?​track ​—  ​If you want to track file downloadsadd "?track" ​parameter ​to the end of the file download URL (example: ​http://your.lucy-installation.com/file.exe?track)+  * %location% 
 +  * %staff-type% 
 +  * %comment% — recipient related information. 
 +  * %gender("​MALE ADDRESSING",​ "​FEMALE ADDRESSING"​)% ​— recipient gender 
 +  * %time(FORMATOFFSET, ZONE)% — Time based variables. FORMAT - date/time format. OFFSET - date/time offset in minutes, can be negative (example: ​"-60" ​- means 60 minutes prior to mail submit time, "​20160"​ - 20160 minutes = 14 days). ZONE - time zone name (example: ​US/Central)Example: %time("​l,​ H:i", "​0",​ "​Europe/​Zurich"​)% — will output "​Monday,​ 09:​20" ​exact time of email submission in Europe/Zurich zoneExample: %time("​Y/​m/​d H:​i:​s",​ "​60"​)% — will output "​2016/​12/​12 10:​20:​30"​ - 1 hour ahead of email submit time
  
 Please note, that these variables are not available in CSS and Javascript files. Please note, that these variables are not available in CSS and Javascript files.
variables_you_can_use_in_lucy.txt · Last modified: 2019/04/07 22:06 by lucy