4 Posts
Jens
11 years ago
2
Topic

Hello there, I've got the following task I'd like to accomplish. I have a javascript that would want to access data from a seblod content type. 

E.g. let's say I have a gallery and I want to have some specific parameter for each image in the gallery. Now I create my nice little group x for each image and this one would include the parameter needed for the javascript. In the template for this content type I add my javascript, but how could I loop through all the images (group x) and get those parameters for the script - maybe putting them all in a nice little array within my script. Any clues how to this would be greatly appreciated. I could put the information in a hidden text or something and get the parameters via jquery, but I'd prefer to keep this data in the script part and not the 'html' part.

Get a Book for SEBLOD
4 Posts
Jens
11 years ago
0
Level 1

Thank you - was blind.

Get a Book for SEBLOD