Hallo erstmal! Ich habe ein Problem mit einer kleinen Extension, die wie der Name schon sagt über Javascript eine Reflektion eines Bildes erzeugt! Schaut so aus:http://cow.neondragon.net/stuff/reflection/
Eigentlich ist die Extension extrem einfach zu handhaben! Einfach installieren! Bei include static ins template laden und dann nur im Inhaltselement Bild oder Text m. Bild wählen! Dort auf "add reflection" und fertig! Denkste! Pustekuchen! Hab mittlerweile alles ausprobiert! Außer ein Haufen Syntaxfehler, die meine komplette Oberfläche mehrmals entschärft haben, konnte ich bis jetzt nichts erreichen.
Hier die ext_tables.php aus der Extension!
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
$tempColumns = Array (
"tx_t3wimagereflections_reflection" => Array (
"exclude" => 1,
"label" => "LLL:EXT:t3w_image_reflections/locallang_db.php:tt_content.tx_t3wimagereflections_reflection",
"config" => Array (
"type" => "check",
)
),
"tx_t3wimagereflections_reflection_height" => Array (
"exclude" => 1,
"label" => "LLL:EXT:t3w_image_reflections/locallang_db.php:tt_content.tx_t3wimagereflections_reflection_height",
"config" => Array (
"type" => "select",
"items" => Array (
Array("LLL:EXT:t3w_image_reflections/locallang_db.php:tt_content.tx_t3wimagereflections_reflection_height.I.0", "rheight20"),
Array("LLL:EXT:t3w_image_reflections/locallang_db.php:tt_content.tx_t3wimagereflections_reflection_height.I.1", "rheight40"),
Array("LLL:EXT:t3w_image_reflections/locallang_db.php:tt_content.tx_t3wimagereflections_reflection_height.I.2", "rheight60"),
Array("LLL:EXT:t3w_image_reflections/locallang_db.php:tt_content.tx_t3wimagereflections_reflection_height.I.3", "rheight70"),
),
"size" => 1,
"maxitems" => 1,
)
),
"tx_t3wimagereflections_reflection_opacity" => Array (
"exclude" => 1,
"label" => "LLL:EXT:t3w_image_reflections/locallang_db.php:tt_content.tx_t3wimagereflections_reflection_opacity",
"config" => Array (
"type" => "select",
"items" => Array (
Array("LLL:EXT:t3w_image_reflections/locallang_db.php:tt_content.tx_t3wimagereflections_reflection_opacity.I.0", "ropacity20"),
Array("LLL:EXT:t3w_image_reflections/locallang_db.php:tt_content.tx_t3wimagereflections_reflection_opacity.I.1", "ropacity40"),
Array("LLL:EXT:t3w_image_reflections/locallang_db.php:tt_content.tx_t3wimagereflections_reflection_opacity.I.2", "ropacity50"),
Array("LLL:EXT:t3w_image_reflections/locallang_db.php:tt_content.tx_t3wimagereflections_reflection_opacity.I.3", "ropacity60"),
),
"size" => 1,
"maxitems" => 1,
)
),
);
t3lib_div::loadTCA("tt_content");
t3lib_extMgm::addTCAcolumns("tt_content",$tempColumns,1);
$GLOBALS['TCA']['tt_content']['palettes']['7']['showitem'] .= ',tx_t3wimagereflections_reflection, tx_t3wimagereflections_reflection_height, tx_t3wimagereflections_reflection_opacity';
t3lib_extMgm::addStaticFile($_EXTKEY,'static','Image reflections');
?>
Und hier der Typo Script Code aus der setup.txt!
temp.pic<tt_content.image.20 tt_contentimage20="">
tt_content.image.20=COA
tt_content.image.20.10=LOAD_REGISTER
tt_content.image.20.10.reflect.cObject=COA
tt_content.image.20.10.reflect.cObject.wrap=class="|"
tt_content.image.20.10.reflect.cObject.stdWrap.if.isTrue.field=tx_t3wimagereflections_reflection
tt_content.image.20.10.reflect.cObject.10=TEXT
tt_content.image.20.10.reflect.cObject.10.noTrimWrap=| | |
tt_content.image.20.10.reflect.cObject.10.value=reflect
tt_content.image.20.10.reflect.cObject.20<tt_content.image.20.10.reflect.cObject.10
tt_content.image.20.10.reflect.cObject.20.field=tx_t3wimagereflections_reflection_height
tt_content.image.20.10.reflect.cObject.30<tt_content.image.20.10.reflect.cObject.10
tt_content.image.20.10.reflect.cObject.30.field=tx_t3wimagereflections_reflection_opacity
tt_content.image.20.20<temp.pic temppic="">
tt_content.image.20.20.1.stdWrap.insertData=1
tt_content.image.20.20.1.params = align="top" {register:reflect}
temp.textpic<tt_content.textpic.20.text
tt_content.textpic.20 =< tt_content.image.20
tt_content.textpic.20.20.text<temp.textpic temptextpic="">
page.headerData.53=TEXT
page.headerData.53.insertData=1
page.headerData.53.data=PATH:EXT:t3w_image_reflections/javascript/reflection.js
page.headerData.53.wrap=<script type="text/javascript" src="|"></script>
Könnt mir irgendjemand helfen? Wäre wichtig! Muss das in unserer neuen Firmenseite verbauen!