i have a field called.
image_start_number
int(4)
Attributes UNSIGNED ZEROFILL
So basically instead of showing “1” in the database… it shows say “0001”
But when I place it on my page via sever connect i get {{serverconnect1.data.query1[0].image_start_number}} it comes out as just “1”
The reason is i have a dynamic gallery… but the images gets uploaded via FTP because there might be a 1000 at a time… so what i want to achieve …
{{serverconnect1.data.query1[0].image_start_number + $index}}
So it becomes 0001,0002,0003 and so on…
but at this point of time it only makes 1,2,3,4… and so on…
How do i achieve this … how do i get {{serverconnect1.data.query1[0].image_start_number}} to render as in the databse table… as 0001 and not just 1…
dmx-bind:href="{{serverconnect1.data.query1[0].image_prefix}}{{serverconnect1.data.query1[0].image_start_number + $index}}.jpg"
so it becomes… DSC_0001.jpg,DSC0002.jpg,DSC0003.jpg
Or am i overthinking this…
Last updated: