Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Jquery with cms inputs


Reply


426 Views

Avatar
shluckey

Community Member, 19 Posts

25 July 2012 at 8:27pm

Hi,

Does anyone know if it is possible to use a jquery image gallery that takes images specified by the user through the cms. I have the gallery running fine in ss3. But it takes its inputs through <img src=""> so they are always fixed. Like so...

<div class="slider-wrapper theme-default">
<div id="slider2" class="nivoSlider">
   <div class="imagemargin">
<img src="image-1.jpg" transition="slideInLeft" />
<img src="image-2.jpg" transition="slideInLeft" />
<img src="image-3.jpg" transition="slideInLeft" />
</div>
</div>
</div>

Is there anyway I can change the input method to be an array or failing that have a function within the page code that allows the user to have say 10 chosen fixed amount of images at any one time?