[SOLVED] Slideshow into cms

Post Reply
Bedzeti
Posts: 29
Joined: Thu Nov 09, 2017 12:29 am

[SOLVED] Slideshow into cms

Post by Bedzeti »

Hallo , its posible to use slideshow in WonderCMS with inserting new fotos in SETTINGS , FILES , SELECT FILE , UPLOAD??
I mean if its there any slideshow to use same image folder in wondercms , or to switch or change only the url source of slideshow images??
Then I can direct in wonder cms upload files and wil be automatic visible in this slideshow ....

Read All Images from a folder And display slide show...

Sorry for my bad english....
Last edited by Bedzeti on Thu Nov 30, 2017 11:07 pm, edited 1 time in total.
User avatar
turboblack
Posts: 198
Joined: Fri Sep 19, 2014 1:53 pm

Re: Slideshow into cms

Post by turboblack »

http://old.net.eu.org/ Get ready to hamsterization! 8-) code takes less than a kilobyte! shock!
https://github.com/turboblack/HamsterCMS new version for PHP 8 with new templates
nion
Posts: 16
Joined: Thu Nov 02, 2017 10:32 am

Re: Slideshow into cms

Post by nion »

Or you use the Carousel from Bootstrap, with this Codesnipped

Code: Select all

 <h2>Carousel Example</h2>  
  <div id="myCarousel" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
      <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
      <li data-target="#myCarousel" data-slide-to="1"></li>
      <li data-target="#myCarousel" data-slide-to="2"></li>
    </ol>

    <!-- Wrapper for slides -->
    <div class="carousel-inner">
      <div class="item active">
        <img src="https://placehold.it/800x600" alt="Los Angeles" style="width:100%;">
      </div>

      <div class="item">
        <img src="https://placehold.it/800x600" alt="Chicago" style="width:100%;">
      </div>
    
      <div class="item">
        <img src="https://placehold.it/800x600" alt="New york" style="width:100%;">
      </div>
    </div>

    <!-- Left and right controls -->
    <a class="left carousel-control" href="#myCarousel" data-slide="prev">
      <span class="glyphicon glyphicon-chevron-left"></span>
      <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#myCarousel" data-slide="next">
      <span class="glyphicon glyphicon-chevron-right"></span>
      <span class="sr-only">Next</span>
    </a>
  </div>
Bedzeti
Posts: 29
Joined: Thu Nov 09, 2017 12:29 am

Re: Slideshow into cms

Post by Bedzeti »

Thak you , and now how to edit the code to change img source to show in this slideshow automaticly all files in my folder?

Read All Images from a folder And display all in this slide show
User avatar
turboblack
Posts: 198
Joined: Fri Sep 19, 2014 1:53 pm

Re: Slideshow into cms

Post by turboblack »

in my example, all the files absolutely need to be registered, in the order in which it is necessary, if you need a script with the admin panel, it will have to be found suitable, and integrated into the engine
or you need a third-party script that can read pictures from a folder, and organize them immediately relative to the appearance of the site design

but these are increasingly complex options, and we have the motto - the simplicity ;)
http://old.net.eu.org/ Get ready to hamsterization! 8-) code takes less than a kilobyte! shock!
https://github.com/turboblack/HamsterCMS new version for PHP 8 with new templates
Bedzeti
Posts: 29
Joined: Thu Nov 09, 2017 12:29 am

Show all images in a folder with PHP

Post by Bedzeti »

Post Reply