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 revisionPrevious revision
Next revision
Previous revision
variables_you_can_use_in_lucy [2019/08/28 15:31] lucyvariables_you_can_use_in_lucy [2021/08/25 19:32] (current) lucy
Line 1: Line 1:
 ===== Landing Page Variables ===== ===== Landing Page Variables =====
  
-  * %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>+  * %static% — path to static directory. It may be useful to make references to CSS/JS files from the HTML page. For example:  
 +<html> 
 +<link rel="stylesheet" type="text/css" href="%static%/style.css"> 
 +</html> 
 + 
 +<html> 
 +<script src="%static%/script.js"></script
 +</html>
   * %link% — base link of the scenario. Use it in navigation for constructing absolute URLs.   * %link% — base link of the scenario. Use it in navigation for constructing absolute URLs.
   * %name% — recipient name   * %name% — recipient name
   * %email% — recipient email address   * %email% — recipient email address
-  * %message% — error message (if any) 
   * %link-awareness% — link to the awareness website. You should configure & enable the 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%   * %division%
Line 11: Line 17:
   * %staff-type%   * %staff-type%
   * %comment% — recipient related information.   * %comment% — recipient related information.
-  * %gender("MALE ADDRESSING", "FEMALE ADDRESSING")% — recipient gender +  * %gender("MALE ADDRESSING", "FEMALE ADDRESSING", "NO GENDER")% — recipient gender 
-  * %time(FORMAT, OFFSET, 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 zone. Example: %time("Y/m/d H:i:s", "60")% — will output "2016/12/12 10:20:30" - 1 hour ahead of email submit time+  * %time(FORMAT, OFFSET, 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 1<php>%time("l, H:i", "0", "Europe/Zurich")%</php> — will output "Monday, 09:20" - exact time of email submission in Europe/Zurich zone. \\ 
 +Example 2<php>%time("Y/m/d H:i:s", "60")%</php> — 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.
Line 27: Line 35:
   * %link% — unique page URL for the recipient.   * %link% — unique page URL for the recipient.
   * %link-awareness% — link to the awareness website. You should configure & enable the 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.
 +  * %user-password-reset% — a password reset link.
 +  * %user-profile-link% — a link to the End User Portal.
   * %name% — recipient name   * %name% — recipient name
 +  * %firstname% — recipient first name
 +  * %lastname% — recipient last name
   * %email% — recipient email address   * %email% — recipient email address
 +  * %client% — client name
   * %division%   * %division%
   * %location%   * %location%
   * %staff-type%   * %staff-type%
 +  * %started% — date when the related campaign has been started
 +  * %stopped% — date when the related campaign has been stopped
   * %comment% — recipient related information.   * %comment% — recipient related information.
-  * %gender("MALE ADDRESSING", "FEMALE ADDRESSING")% — recipient gender +  * %gender("MALE ADDRESSING", "FEMALE ADDRESSING", "NO GENDER")% — recipient gender 
-  * %time(FORMAT, OFFSET, 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 zone. Example: %time("Y/m/d H:i:s", "60")% — will output "2016/12/12 10:20:30" - 1 hour ahead of email submit time+  * %time(FORMAT, OFFSET, 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 1<php>%time("l, H:i", "0", "Europe/Zurich")%</php> — will output "Monday, 09:20" - exact time of email submission in Europe/Zurich zone.  
 + 
 +Example 2<php>%time("Y/m/d H:i:s", "60")%</php> — 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.1566999074.txt.gz · Last modified: 2019/08/28 15:31 by lucy