Menu icon Foundation
How can I find/use an array list position number for use with Panini

How can I find/use an array list position number for use with panini? I have made a .yml data file with an array of image links and would like to use this to create an orbit slider with thumbnail.

 

my .yml data lists looks something like this:

listing1Images:

  - image: http://lorempixel.com/1200/600/city/2/

  - image: http://lorempixel.com/1200/600/city/3/

  - image: http://lorempixel.com/1200/600/city/4/

 

I know the first one is location '0' but i need to use that information to automatically create my thumbnail bullet list of the slider. 

paniniyml6.4

How can I find/use an array list position number for use with panini? I have made a .yml data file with an array of image links and would like to use this to create an orbit slider with thumbnail.

 

my .yml data lists looks something like this:

listing1Images:

  - image: http://lorempixel.com/1200/600/city/2/

  - image: http://lorempixel.com/1200/600/city/3/

  - image: http://lorempixel.com/1200/600/city/4/

 

I know the first one is location '0' but i need to use that information to automatically create my thumbnail bullet list of the slider. 

NoreagoCan about 2 years ago

anyone?