Add an fullscreen slideshow to the startpage

Permalink
Hello
I use concrete5 8.2.1 and want to add the following:

When I call my homepage, I want to start a slideshow. This should be displayed maximized over the whole browser viewport.
With a click on the slideshow or at the end of the slideshow should be redirected to another page.
Optional: This slideshow should be graphically editable for the end user.

I am not sure how to realize, option one was to add some slideshow hardcoded. But maybe it would be better to overwrite the image_slider or create an own block?

I just start with concrete5

 
Steevb replied on at Permalink Reply 1 Attachment
Steevb
Have you tried the built in 'Slider' block. See attached.
johannesri replied on at Permalink Reply 1 Attachment
Yes, this slider block is the "image_slider" element I was talking about. But it has no option for fullscreen or link automatically after reaching the end.

So I try now to copy the image_slider-Block to new own block to add functionality there:

My first steps for now:
cp -av concrete/blocks/image_slider application/blocks/
cd application/blocks
mv image_slider start_intro
cd start_intro
find . -type f -print -exec sed -i 's/ImageSlider/Startintro/g' {} \;
find . -type f -print -exec sed -i 's/Image Slider/Start Intro/g' {} \;
find . -type f -print -exec sed -i 's/image-slide/start-intro/g' {} \;
# edit controller.php →    namespace Application\Block\Startintro;


So now I can add this new "Start Intro" element in edit mode.

Also I found now the code from the developer from the old site I try to rebuild with new Concrete5. He did similar, creating copy of "Slider" to make "Startintro". But he also added javascript.php
view.php:13:   <?php include('javascript.php') ?>
   controller.php:72:        $this->requireAsset('javascript', 'jquery');

I will attach the javascript.php file, because code block here is now showing bigger content very well. In javascript.php I see the redirectUrl to page named "neues".