From 53454451a84938723f399a4dd0ced569a5b9fa28 Mon Sep 17 00:00:00 2001 From: Silvio Date: Thu, 2 Aug 2012 17:14:28 -0300 Subject: Adding embed and image fields into the timeline --- timelinejs_json_event.tpl.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'timelinejs_json_event.tpl.php') diff --git a/timelinejs_json_event.tpl.php b/timelinejs_json_event.tpl.php index a76f806..575017e 100644 --- a/timelinejs_json_event.tpl.php +++ b/timelinejs_json_event.tpl.php @@ -1,11 +1,21 @@ { - "startDate":"field_data['und']['0']['value'])); ?>", + "startDate":"field_data['und'][0]['value'])); ?>", "headline":"title; ?>", - "text":"body['und']['0']['value']; ?>", + "text":"body['und'][0]['value']; ?>", "asset": { - "media":"media; ?>", +field_embed)) { ?> + "media":"field_embed['und'][0]['uri']); ?>", "credit":"", "caption":"" +field_image)) { ?> + "media":"field_image['und'][0]['uri']); ?>", + "credit":"", + "caption":"" + + "media":"", + "credit":"", + "caption":"" + } } -- cgit v1.2.3