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
Last revision Both sides next revision
variables_you_can_use_in_lucy [2019/08/28 15:31]
lucy
variables_you_can_use_in_lucy [2019/09/19 14:09]
lucy [Landing Page Variables]
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
Line 12: Line 19:
   * %comment% — recipient related information.   * %comment% — recipient related information.
   * %gender("MALE ADDRESSING", "FEMALE ADDRESSING")% — recipient gender   * %gender("MALE ADDRESSING", "FEMALE ADDRESSING")% — 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.txt · Last modified: 2019/09/19 14:11 by lucy