Hey,
I try to fill an array for a JS Timeline with Data from Silverstripe.
I'm looking for something like:
<script type="text/javascript">
...
var event_data =
{
"dateTimeFormat": "ISO 8601",
"events":[
<% control children %>
{ "start": $StartDate,
"end": $EndDate,
"title": $Title,
"content": $Content },
<% end_control %>
]
};
...
</script>
Can anybody help? Is there a workaround?
Thanks