Hauer-Heinrich / hh_slider

TYPO3 extension. Adds tiny-slider to TYPO3.
MIT License
1 stars 2 forks source link

hh_contetslider doesn't slide in TYPO3 12.4.14 any more #45

Open stpink opened 4 months ago

stpink commented 4 months ago

Hi, I'm currently trying to integrate the hh_slider version 0.5.1 into a TYPO3 12.4.14 setup. In the case after updating a page from 11.5.36 to 12.4.14 and the slider from version 0.2.6 to 0.5.1, the integration of content has resulted in the content no longer sliding but instead being displayed one below the other.

Thanks Stefan

Teisi commented 4 months ago

Have you still included the JavaScript/Css from the slider - or is it loaded in the frontend?

stpink commented 3 months ago

Hi, I am using t3sbootstrap by Helmut Hackbarth. Maybe that's the issue. I could try to integrate the JavaScript on the page. For example, like this:

// for jQuery $(function() { / ... / });

// for Vanilla JS function ready(fn) { if (document.readyState != 'loading'){ fn(); } else { document.addEventListener('DOMContentLoaded', fn); } }

ready(() => { / ... / });

What function would be needed? What exactly should be implemented?

Thanks, Stefan

Teisi commented 3 months ago

neither, either via FLUID in your layout or via TypoScript:

<f:asset.css identifier="hh-slider-styles" href="EXT:hh_slider/Resources/Public/Css/slider.css" />
<f:asset.script identifier="hh-slider-tiny-slider" src="EXT:hh_slider/Resources/Public/JavaScript/tiny-slider.js" />
<f:asset.script identifier="hh-slider-tiny-slider-config" src="EXT:hh_slider/Resources/Public/JavaScript/main.js" />

or

page.includeCSS {
    fileXXX=EXT:hh_slider/Resources/Public/Css/slider.css
}
page.includeJSFooter {
    fileXXX=EXT:hh_slider/Resources/Public/JavaScript/tiny-slider.js
    fileXXX=EXT:hh_slider/Resources/Public/JavaScript/main.js
}