Template Tags: Not working
Hi,
I can't get the template tags to work. In the channel entry I can see that the field returns the right data:
{"start_date":"2012-08-20","start_time":"18:30","end_time":"20:30","end_date":"2012-08-20","all_day":"n"}
But on the front end with this code it only returns tags and not data:
North London - August 2012
{event_dates:start_date}
{event_description}
http://bereavedpartnerssupportgroup.c...
Stuck, please help.
Niall
Replies
Niall Thompson 13 Jul 2012 19:52
This is the code i'm using in my template:
{exp:low_events:entries channel="schedule" date="2012"}
{title}
{event_dates:start_date}
{event_description}
{/exp:low_events:entries}
Low 13 Jul 2012 21:06
Hi Niall,
Those tags (or variables, to be more precise) are channel fields. What is the short name of your Low Events channel field? You can use that short name as the first part of your variable, so:
etc.
Niall Thompson 13 Jul 2012 21:27
Thanks for quick reply.
Short name for my Low Events channel field is: {event_details}
Makes more sense but I can't understand why this doesn't work still:
{exp:low_events:entries channel="schedule"}
<div class="calendar-entry">
<div class="date pull-left">
<p>{day} <span>{month_short}</span></p>
</div>
<div class="meeting-details pull-left">
<h3>{meeting_location}</h3>
<time>{weekday}{event_details:start_date format="%j %F %Y"}<br>18:30 to 20:30 (GMT)</time>
</div>
</div>
{/exp:low_events:entries}
Forgive my ignorance.
:)
Low 14 Jul 2012 09:41
Is this online somewhere, so I can take a look myself? If so, you can send SuperAdmin login credentials to hi at gotolow dot com.
Niall Thompson 15 Jul 2012 21:15
I got it working using the following:
{exp:low_events:entries channel="schedule" limit="2"}
{event_details:start_date format="%j"}
{event_details:start_date format="%M"}
{event_details:start_date format="%l"}
{event_details:weekday}
{event_details:start_date format="%j %F %Y"}
{event_details:start_time format="%H:%i"} to {event_details:end_time format="%H:%i"} (GMT)
{/exp:low_events:entries}
Low 16 Jul 2012 06:55
Good. Just remember that {event_details:weekday} is not a valid variable. But you're already using the %l (lowecase L) to generate that, so that should work out.