Hi @all,
ich habe ein Problem bei der Erstellung einer Extension. Ich habe mal das Tutorial von Hachmeister durchgespielt.
Das Image wird einwandfrei dargestellt, wenn ich jedoch noch ein Textfeld hinzufügen möchte, dann wird der Text jedoch nicht dargestellt!
Wo liegt mein Fehler?
gallery_template.tmpl
<!-- ###GALLERY_TABLE### -->
<table cellspacing="0" cellpadding="5" border="1">
<!-- ###CONTENT### -->
<!-- ###GALLERY_TABLE_ROW### -->
<tr>
<!-- ###CONTENT_ROW### -->
<!-- ###GALLERY_TABLE_ITEM### -->
<td align="center" valign="bottom">###GALLERY_IMAGE###
###GALLERY_PICTXT###
</td>
<!-- ###GALLERY_TABLE_ITEM### -->
<!-- ###CONTENT_ROW### -->
</tr>
<!-- ###GALLERY_TABLE_ROW### -->
<!-- ###CONTENT### -->
</table>
<!-- ###GALLERY_TABLE### -->
meine ext_typoscript_setup.txt sieht so aus:
plugin.tx_imagegallery_pi1 {
templateFile = {$plugin.tx_imagegallery_pi1.templateFile}
columns = {$plugin.tx_imagegallery_pi1.columns}
image {
file.maxW = 120
imageLinkWrap = 1
imageLinkWrap {
enable = 1
bodyTag (
<body bgcolor="#000000" leftmargin="2" topmargin="2"
marginwidth="2" marginheight="2">
)
wrap = <a href="javascript:close();"> | </a>
width = 640m
height = 640m
JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 4,4
}
}
pictxt {
wrap = hier steht der Text | und hier endet er
}
}
tx_imagegallery_pi1 >
tx_imagegallery_pi1 = < plugin.tx_imagegallery_pi1
tx_imagegallery_pi1.displayCurrentRecord = 1
class.tx_imagegallery_pi1.php
.....
if ($row) {
// 010: Create one item
$img = $this->conf["image."];
$img["file"] = "uploads/tx_imagegallery/" . $row["image"];
$markerArray["###GALLERY_IMAGE###"] = $this->cObj->IMAGE($img);
$txt = $this->conf["pictxt."];
///////////////////////////////////////////////////////////////
// irgendwo in den nächsten beiden Zeilen liegt der Bug, aber WO :( :(
$txt["value"] = $row["pictxt"];
$markerArray["###GALLERY_PICTXT###"] = $this->cObj->TEXT($txt);
///////////////////////////////////////////////////
} else {
// 011: Create one dummy icon
$markerArray["###GALLERY_IMAGE###"] = " ";
$markerArray["###GALLERY_PICTXT###"] = " ";
}
.....
Wäre dankbar für einen Tipp?
Ciao
Der DJ