0

How can I get a Low Events date to display in a Postmaster parcel? I want to send an email confirmation when a user submits an upcoming training session announcement.

1.) I tried this:

{parcel:training_event_details}

2.) I tried this:

{parcel:training_event_details:start_date}

3.) I tried this (a combination of this example from Low and this example from Objective HTML):

{exp:channel:entries channel="training_sessions" entry_id="{parcel:entry_id}" dynamic="no" status="not closed"}
  {training_event_details:start_date format="%j %F %Y"}{training_event_details:start_time format=", %H:%i"}
  {if training_event_details:one_day == 'y'}
    {training_event_details:end_time format="– %H:%i"}
  {if:else}
    —
    {training_event_details:end_date format="%j %F %Y"}{training_event_details:end_time format=", %H:%i"}
  {/if}
  ({training_event_details:duration})
{/exp:channel:entries}

All methods above render blank. What am I missing? Thanks!

Versions:

  • ExpressionEngine: 2.9.2
  • Low Events: 1.3.1
  • Postmaster: 1.5.0

Edit to fix bug (mentioned by Low in comment) in code #3:

Here is the working code:

{exp:channel:entries channel="training_sessions" entry_id="{parcel:entry_id}" dynamic="no" status="not closed"}
  {training_event_details:start_date format="%j %F %Y"}{training_event_details:start_time format=", %H:%i"}
  {if '{training_event_details:one_day}' == 'y'}
    {training_event_details:end_time format="– %H:%i"}
  {if:else}
    —
    {training_event_details:end_date format="%j %F %Y"}{training_event_details:end_time format=", %H:%i"}
  {/if}
  ({training_event_details:duration})
{/exp:channel:entries}
2
  • 1
    I'm not familiar with Postmaster, so can't really comment on that. All I know is that, looking at the conditional, you might be encountering this EE bug: support.ellislab.com/bugs/detail/20621/… -- although that's probably unrelated to the issue.
    – Low
    Jan 20 '15 at 19:30
  • Good point. I'll fix that in my code. Thanks.
    – Amy Witty
    Jan 20 '15 at 19:33
0

Okay, so method #3 in my question above actually DOES work. It didn't preview correctly for the entry I was looking at but when I changed to several other entries it rendered fine. There was something goofed up with that particular entry and I've since deleted it. Anyway, sorry to waste your time, Low!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.