Verlinkungsproblem Textile Mehrsprachig

Wie verwendet man Module oder Aktion und passt diese an.

Verlinkungsproblem Textile Mehrsprachig

Beitragvon ThomasS » 17. Jun 2008, 10:44

Hallo, liebe Forenmitglieder,

ich habe Probleme mit dem wichtigsten Modul meiner mehrsprachenfähigen R4 - Site: mit Textile.

Die Verlinkung funktioniert im Prinzip schon, auch mehrsprachig.

Im Dropdownmenü kann ich auswählen: Soll das Bild verlinkt werden?

Ich kann wählen: Ohne Link, Als Lightbox, Externer Link, Interner Link.

Wenn ich einen internen Link ausgewählt und das Bild also verlinkt habe, wird es oftmals nicht verlinkt! Sobald ich das Modul im Backend öffne, ist das Dropdownmenü auf "Externer Link" gesprungen!

Für Eure Hilfe wäre ich sehr dankbar!

Herzliche Grüße
Thomas

Hier das Modul:


Code: Alles auswählen
<?
/**
   *======================================*
   * Textile Editor mit erweiterten Artikelbild. ? sonnix.de *
   *======================================*
*/
?>
<strong>Textile Editor</strong>:<br />
<textarea name="VALUE[1]" cols="80" rows="50" class="inp100">REX_HTML_VALUE[1]</textarea>
<br /><br />

<table width="570" border="0" cellspacing="0" cellpadding="4" >
  <tr>
    <th valign="top" style="background-color:#ccd7dd; text-align:left; border-bottom:1px solid #b0bdc3">Bild einf&uuml;gen:</th>
  </tr>
  <tr>
    <td valign="top"><br /><strong>Maximale Bildbreite:</strong> <br /> <select name="VALUE[2]">
        <option value='100' <? if ("REX_VALUE[2]" == '100') echo 'selected'; ?>>100 Pixel</option>
        <option value='163' <? if ("REX_VALUE[2]" == '163') echo 'selected'; ?>>163 Pixel</option>
        <option value='500' <? if ("REX_VALUE[2]" == '500') echo 'selected'; ?>>500 Pixel</option>
      </select> </td>
  </tr>
  <tr>
    <td valign="top"> <strong>Ausrichtung des Artikelbilds:</strong><br /> <select name="VALUE[4]" class="inp100">
        <option value='fllinks' <? if ("REX_VALUE[4]" == 'fllinks') echo 'selected'; ?>>Links
        vom Text</option>
        <option value='flrechts' <? if ("REX_VALUE[4]" == 'flrechts') echo 'selected'; ?>>Rechts
        vom Text</option>
      </select> </td>
  </tr>
  <tr>
    <td valign="top"> <strong>Medienpool Bildauswahl:</strong><br />
      REX_MEDIA_BUTTON[1] </td>
  </tr>
  <tr>
    <td valign="top"><strong>Bild Titel:</strong><br /><input type="text" name="VALUE[6]" class="inp100" value="REX_VALUE[6]">
      <br /><br />
    </td>
  </tr>
  <tr>
    <th valign="top" style="background-color:#ccd7dd; text-align:left; border-bottom:1px solid #b0bdc3"><strong>Soll das Bild verlinkt werden?
      </strong></th>
  </tr>
  <tr>
    <td valign="top"><br /> <select name="VALUE[3]">
        <option value='1' <? if ("REX_VALUE[3]" == '1') echo 'selected'; ?>>Ohne
        Link</option>
        <option value='2' <? if ("REX_VALUE[3]" == '2') echo 'selected'; ?>>Als
        Lightbox</option>
        <option value='3' <? if ("REX_VALUE[3]" == '4') echo 'selected'; ?>>Interner
        Link</option>
        <option value='4' <? if ("REX_VALUE[3]" == '3') echo 'selected'; ?>>Externer
        Link</option>
      </select></td>
  </tr>
  <tr>
    <td valign="top"><strong>Externer Link (vollst. URL):<br />
      <input type=text size=50 class="inp100" name=VALUE[5] value="REX_VALUE[5]">
      </strong></td>
  </tr>
  <tr>
    <td valign="top"><strong>Interne Linkauswahl:<br />
      REX_LINK_BUTTON[1] </strong> </td>
  </tr>
</table>


<?php include "../sonstiges/anleitung_textile.inc.php" ?>



Code: Alles auswählen
<div class="textbox">

<?
/**
   *======================================*
   * Textile Editor mit erweiterten Artikelbild. � sonnix.de *
   *======================================*
*/

// Ausgabe in Abhängigkeit des Link-Typs
switch (REX_VALUE[3]):
case 1:

   // Ohne Link
   $file='<div class="'."REX_VALUE[4]".'"><p><img src="/index.php?rex_resize=REX_VALUE[2]w__'."REX_FILE[1]".'" alt="'."REX_VALUE[6]".'" title="'."REX_VALUE[6]".'" /></p></div>';
   break;



case 2:
   // Lightbox Link
   $file='<div class="'."REX_VALUE[4]".'"><p><a rel="lightbox _0" href="files/'."REX_FILE[1]".'" title="REX_VALUE[6]"><img src="/index.php?rex_resize=REX_VALUE[2]w__'."REX_FILE[1]".'" alt="'."REX_VALUE[6]".'" title="'."REX_VALUE[6]".'" /></a></p></div>';
   break;
   
case 3:
   // Interner Link
   $file='<div class="'."REX_VALUE[4]".'"><p><a href="'.rex_getUrl("REX_LINK_ID[1]", $REX["CUR_CLANG"]).'"><img src="/index.php?rex_resize=REX_VALUE[2]w__'."REX_FILE[1]".'"  title="'."REX_VALUE[6]".'" /></a></p></div>';
   break;
   
case 4:
   // Externer Link
   $file='<div class="'."REX_VALUE[4]".'"><p><a href="REX_VALUE[5]"><img src="/index.php?rex_resize=REX_VALUE[2]w__'."REX_FILE[1]".'" alt="'."REX_VALUE[6]".'" title="'."REX_VALUE[6]".'" /></a></p></div>';
   break;
   
endswitch;

$input =<<< EOT
REX_HTML_VALUE[1]
EOT;
$textile = new Textile;
$text = "";
if ("REX_VALUE[1]" != "") $text = $textile->TextileThis($input);

$text = str_replace("###","&#x20;",$text);
if ("REX_FILE[1]" == "")  $file = "";
print $file.$text;
?>

</div>
ThomasS
 
Beiträge: 131
Registriert: 12. Apr 2007, 11:53
Wohnort: Friedberg

Zurück zu Module/Aktionen [R4]

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste