Page 1 of 1

CMSMS 2.1.2: customize the Simplex Slideshow?

Posted: Thu Apr 07, 2016 3:05 pm
by kikinovak
Hi,
I've been a CMSMS 1.x user for quite some time. I've used it to setup some simple websites for friends and even the odd client. Here's are some sites I've made with it:
- http://www.scholae.fr
- http://www.villa-figaret.fr
- http://www.osteo-montpellier.net
I'm mainly an admin and Linux trainer, and I've got very poor web coding skills. My company's website (http://www.microlinux.fr) is a bone-headed PHP site hand-coded in Vim. So I'm happy to have a nice ready-made CMS with some usable style sheets. I've written a little HOWTO to document all the changes I've made:
- http://www.microlinux.fr/microlinux/Lin ... -HOWTO.txt
Now I've just installed a fresh version of CMS Made Simple 2.1.2 on my LAN server, and I'm playing around with it.
I like the Simplex theme's slideshow. I'd like to customize that thing, use my own text & images, but unfortunately I don't have the slightest clue as to where to start. I don't mind to RTFM, but I could need some pointer for a start.
Cheers from the sunny South of France,
Niki

Re: CMSMS 2.1.2: customize the Simplex Slideshow?

Posted: Thu Apr 07, 2016 5:46 pm
by paulbaker
Well I looked at http://www2.demo.cmsmadesimple.org/inde ... plex-theme which is Simplex but CMSMS V1.

When you look at the simplex-theme template you will see how it is done, here is the relevant section:

Code: Select all

        <!-- .banner (banner area for a slider or teaser image) -->
        <section class='banner row noprint' role='banner'>
            <div class='banner-text'>
                <ul>
                    <li>Flexible</li>
                    <li>Powerful</li>
                    <li>Secure</li>
                    <li>Robust</li>
                </ul>
            </div>
            <div class='banner-image cf'>
            {strip}
                {* you do not need a module for every simple site functionality. For example you can build a simple slideshow
                with php glob function (http://www.php.net/manual/en/function.glob.php) without wasting your system resources 
                by using modules or plugins.
                Below would search for files matching .jpg in folder named teaser in simplex theme folder *}
                {assign var='teaser' value='uploads/simplex/teaser/*.jpg'|glob}
                    {foreach from=$teaser item='one'}
                        <div><img src='{root_url}/{$one}' width='852' height='275' alt='' /></div>
                    {/foreach}
            {/strip}
            </div>
        </section>
        <!-- .banner //-->
So edit the template and have a fiddle around:
Layout > Design Manager > Templates > Simplex

Re: CMSMS 2.1.2: customize the Simplex Slideshow?

Posted: Fri Apr 08, 2016 3:52 am
by Jeff
The text in the template is:

Code: Select all

           <div class='banner-text'>
                <ul>
                    <li>Flexible</li>
                    <li>Powerful</li>
                    <li>Secure</li>
                    <li>Robust</li>
                </ul>
            </div>
The pictures are auto loaded from this directory:

Code: Select all

/uploads/simplex/teaser/*.jpg

Re: CMSMS 2.1.2: customize the Simplex Slideshow?

Posted: Fri Apr 08, 2016 5:25 am
by kikinovak
Thanks very much !