Ich habe die pmkslimbox manuel eingebunden sprich nicht über das template, leider funktioniert die Lightbox so nur in der chgallery nicht in den tt_news oder anderen contentseiten.
Was müsste man ausser den unten aufgeführten Code noch ändern?
page = PAGE
page {
typeNum = 0
stylesheet = fileadmin/includes/style.css
shortcutIcon = fileadmin/images/favicon.ico
10 < temp.mainTemplate
1000 < plugin.tx_monoga_pi1
includeCSS.file41 = typo3conf/ext/pmkslimbox/res/styles/slimbox.css
includeCSS.file42 = EXT:rgaccordion/res/rgaccordion1.css
includeJS.file51 = typo3conf/ext/t3mootools/res/mootools_v1.2.1.js
includeJS.file52 = typo3conf/ext/pmkslimbox/res/scripts/slimbox.js
includeJS.file53 = EXT:rgaccordion/res/rgaccordion1.js
headerData.1145 = TEXT
headerData.1145.value (
<script type="text/javascript">
/*<![CDATA[*/
<!--
Slimbox.scanPage = function() {var links = $$("a").filter(function(el) {return el.rel && el.rel.test(/^lightbox/i);});$$(links).slimbox({resizeDuration: 400, resizeTransition: Fx.Transitions.Sine.easeInOut, opacity: 0.8, opacityDuration: 500, loop: 1, initialWidth: 250, initialHeight: 250, animateCaption: 1, showCounter: 1, enablePrintButton: 0, enableSaveButton: 0,counterText: 'Seite {x} von {y}', psScriptPath: 'typo3conf/ext/pmkslimbox/savefile.php'}, null, function(el) {return (this == el) || ((this.rel.length > 8-) && (this.rel == el.rel));});};window.addEvent("domready", Slimbox.scanPage);
// -->
/*]]>*/
</script>
)
}
Hintergrund der Aktion ist, dass ich im Quellcode x mal Mootools und Co. eingebunden hatte von den verschiednsten EXT und ich es deshalb lieber manuel machen möchte. Leider haben nicht alle EXT die Option es per TS auszuschalten 🙁