CMS_IMGDESCR nicht anklickbar

Gesperrt
_wiewo_
Beiträge: 358
Registriert: Mo 8. Sep 2008, 11:12

CMS_IMGDESCR nicht anklickbar

Beitrag von _wiewo_ »

Mooinsen,

habn Problem grad mit nem Modul wo das Bild austauschbar sein muss....

Modul Template

Code: Alles auswählen

<img id="ein_bild" src="{ContentBildUrl}" alt="{ContentBildDescr}" />
Modul

Code: Alles auswählen

$sContentBildUrl = "CMS_IMG[1]";
$sContentBildDescr = "CMS_IMGDESCR[1]"

$oTemplate->set('s', 'ContentBildUrl', $sContentBildUrl);
$oTemplate->set('s', 'ContentBildDescr', $sContentBildDescr);
funzt ja auch, bis auf das ich den Edit Button nicht drücken kann und hinter ihm "" />" steht. Woher das "" />" kommt ist mir klar, aber gibts nen TrickyTrick wie man den trotzdem "anklickbar" machen kann obwohls im ALT-TAG steht? :)

Hab die Sufu gerade mal benutzt aber nix gefind.

lG
_wiewo_
_wiewo_
Beiträge: 358
Registriert: Mo 8. Sep 2008, 11:12

Beitrag von _wiewo_ »

jemand sollte mal http://forum.contenido.org/viewtopic.php?t=6790 bearbeiten

vorallem die angaben "CMS_IMGEDIT (nur Contenido 4.5 / 4.6)" in "CMS_IMGEDIT (ab Contenido 4.5)" ändern oder so ;)

hab jetzt so gemacht

Modul

Code: Alles auswählen

if ("CMS_IMG[1]" != "") {
        $sContentBildUrl = "CMS_IMG[1]";
        $sContentBildDescr = "CMS_IMGTITLE[1]";
        ($edit ? $sContentBildEdit = "CMS_IMGEDIT[1]" : $sContentBildEdit = "");
    } else {
        $sContentBildUrl = "upload/platzhalter.jpg";
        $sContentBildDescr = "Platzhalter";
        ($edit ? $sContentBildEdit = "CMS_IMGEDIT[1]" : $sContentBildEdit = "");
    }

Modul Template

Code: Alles auswählen

<img id="ein_bild" src="{ContentBildUrl}" alt="{ContentBildDescr}" />{ContentBildEdit}

Das funzt und ist doch denke ich mal anständig oder?
Gesperrt