CMSMS 2.1.2: customize the Simplex Slideshow?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
kikinovak
New Member
New Member
Posts: 7
Joined: Fri Oct 24, 2014 11:04 am

CMSMS 2.1.2: customize the Simplex Slideshow?

Post 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
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: CMSMS 2.1.2: customize the Simplex Slideshow?

Post 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
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: CMSMS 2.1.2: customize the Simplex Slideshow?

Post 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
kikinovak
New Member
New Member
Posts: 7
Joined: Fri Oct 24, 2014 11:04 am

Re: CMSMS 2.1.2: customize the Simplex Slideshow?

Post by kikinovak »

Thanks very much !
Locked

Return to “CMSMS Core”