I am using a CMS that uses Smarty, I am not that familiar with Smarty. I can access array values like this: {{$data.video.title}}
I need to access video information but came across this issue:
[formats] => Array
(
[.mp4] => Array
(
[postfix] => .mp4
[dimensions] => Array
(
[0] => 1280
[1] => 720
)
[duration] => 330
[duration_string] => 5:30
[duration_array] => Array
(
[minutes] => 5
[seconds] => 30
)
[file_size] => 51928676
[file_size_string] => 49.52 Mb
[timeline_screen_amount] => 0
[timeline_screen_interval] => 0
[file_name] => 5.mp4
[file_path] => 8ad883ae4989f1aaf1da077bf56d9495/0/5/5.mp4
[timeline_directory] =>
)
)
I would like to know how I can access the [.mp4] values, since it begins with a period it causes problems. I have tried many variations such as:
{{$data.formats..mp3.file_size_string}}
{{$data.formats[.mp3].file_size_string}}
{{$data.[formats][.mp3][file_size_string]}}
etc...
Any help would be greatly appreciated!