Posted: April 13, 2016 at 1:45 pm
I have events in EE that have a series of meetings. I would like to insert the datetime_start of only the first meeting of the series into the text of my registration confirmation email. I’ve made a custom template and I’ve inserted custom text into the [event list] section–I tried to use “[datetime_start limit=1] but that didn’t work. Is there a way to do this? Thanks, Amanda |
|
Hi Amanda, That’s a nice guess, but the [DATETIME_START] shortcode has no additional parameters. You would have to enter/type/add the datetime information statically to the custom message notification if you don’t want the full list, that way it will only show the one you want. |
|
The only trouble with that approach is that I have a whole category of events that I want to use this particular custom template with and not all of them start on the same day. I can probably work around this, but it would be handy to have that capability. Thanks, |
|
Hi Amanda, Another approach would be to input the date you want to be displayed in a custom field in the event editor. Then you can display the custom field value with the |
|
Hi Josh, |
|
Hi Josh, |
|
Is it possible to have more than one custom field in the event editor? And to specify which field will show in the [EVENT_META_*] ? |
|
Hi Amanda, Yes you can. The _* shortcodes are all dynamic shortcodes (there’s a few different types of _* shortcodes in EE) meaning you can do something like this:
and EE will parse to the custom meta value for that key. Note the key must match exactly. |
|
Is the key the same as the field name? |
|
Never mind–I tried it and it works! |
|
Yes within the custom fields the ‘Name’ field is the key, the value is… well the value for that key 🙂 If you have any further questions just let us know. |
|
The support post ‘Messages: Shortcode to display only first datetime of series.’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.