diff --git a/pages/09.Channels/02.Emails/01.Managing emails/docs.en.md b/pages/09.Channels/02.Emails/01.Managing emails/docs.en.md index be8c6b700..ae72baf11 100644 --- a/pages/09.Channels/02.Emails/01.Managing emails/docs.en.md +++ b/pages/09.Channels/02.Emails/01.Managing emails/docs.en.md @@ -81,6 +81,33 @@ Your date will displayed as human reading format taken from Configuration > Sys - Default format for date only - Default Time Only Format +### Today token + +The token `{today}` displays the actual date and time in the email or landing page. By default, you can use predefined formats after the `|` symbol: + +- `{today}` uses the same format as `{today|datetime}` +- `{today|date}` +- `{today|time}` + +The date displays in a human readable format, taken from Configuration > System Settings + +- Default format for date only +- Default Time Only Format + +#### Custom format + +Returns the formatted date string based on PHP datetime format supplied - see [documentation][php-datetime] + +- `{today|Y-m-d H:i:s}` +- `{today|d. m. Y}` + +#### Relative date + +You can use the Today token to show a relative date by using a second `|` symbol: + +- `{today|datetime|+1 month}` +- `{today|d. m. Y|+1 day}` + ## Tracking Pixel The tracking pixel image is usually appended to the email message, if enabled. If needed, one could insert the tracking pixel image with the special token `{tracking_pixel}` at any place other within the text body. Beware that it should not be inserted directly after the opening `` because this prevents correct display of pre-header text on some MUAs. diff --git a/pages/11.Components/04.Pages/01.Managing Pages/docs.en.md b/pages/11.Components/04.Pages/01.Managing Pages/docs.en.md index d0f1e3146..8468ebad5 100644 --- a/pages/11.Components/04.Pages/01.Managing Pages/docs.en.md +++ b/pages/11.Components/04.Pages/01.Managing Pages/docs.en.md @@ -52,6 +52,10 @@ The page builder provides quick and convenient access to assets, other landing p Since Mautic 2.7.0, the builder will let you drag the predefined content sections from the right hand toolbar and drop them to the position you choose. It's possible to select from layout of 1, 2 or 3 columns. The existing sections can be re-ordered or removed. +### Today token + +[Same as for emails][managing-emails]. + #### Code Mode [Go to the Code Mode docs][code-mode].