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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Jquery with cms inputs


Go to End


758 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?