I want to write my costume photo slider in script editor web part. I already have the script for basic photo slider, now I want to use a specific images in an image library. What is a quick easy script to get images with specific value of a column, like news : true, from an image library?

1 Answer 1


I suspect you only need the URL to the files in the image library.

You can use the JSOM to get items in javascript. To only retrieve items where the column News has the value 'true' you can use a CAML query.

More information including example scripts: JSOM, CAML

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.