Posts: 4
Threads: 2
Joined: Jun 2013
I would like to include a slider into one of my page, and with each slider image comes some text (h1 and p), that should also change.
For building the static website I used the jslider, but now I need to implement it into GS CMS, and I am struggling.
Could you please give me any help of how to implement the slider with the text?
Posts: 6,267
Threads: 182
Joined: Sep 2011
Just add it to your theme.
And wrap your slider in whatever tags you need to initialize it.
Most sliders use simple lists or divs.
Posts: 6,267
Threads: 182
Joined: Sep 2011
You will need to post exact info on what your code is and what slider you are using.
Posts: 4
Threads: 2
Joined: Jun 2013
Thank you for trying to help!
I am using the jSlider, and the code for the slider images is like this:
<!-- Slider -->
<div id="slider">
<div id="sliderimage"><img src="images/homeSlide_1.jpg" /></div>
<div id="sliderimage"><img src="images/homeSlide_2.jpg" /></div>
<a href="#" class="slidesjs-previous slidesjs-navigation"></a>
<a href="#" class="slidesjs-next slidesjs-navigation"></a>
</div>
<!-- End Slider -->
So it's simply a list of images, but how do I include this into GS CMS, so that the client can change/add images?
On the same page I have headline and some short text, that should change according with the slider images. How can I implement this? I figured out how to have multiple custom fields on a page with the Custom Fields plugin, but I don't know how to combine this with the slider?
I hope you can help................
Posts: 1,127
Threads: 136
Joined: Feb 2012
If you want your client to manage the slider you can set it up so that he/she can do so through dialogue boxes and options without editing code and without using ftp by using the i18ngallery slider. Like this:
http://mvlcek.bplaced.net/i18ngallery/i18ngallery-s3slider/
or this
http://mvlcek.bplaced.net/get-simple/i18ngallery/cycle-2
I know that isn't what you asked, but it might be easier and better than the other slider.
Posts: 4
Threads: 2
Joined: Jun 2013
Thank you for your tip, but I now had to decide to use modx (again), even though I really like the simplicity of GS, it just doesn't seem to fit all my needs for this project.
Posts: 6,267
Threads: 182
Joined: Sep 2011
Yes allowing editing of the images and captions is best done with a plugin.
Posts: 1,247
Threads: 82
Joined: Feb 2011