[gelöst]Bildausgabe in Panels3 und Drupal 6

am 19.01.2010 - 14:48 Uhr in
Hallo,
Weiss jemand wie ich die URL Monipulation der Bildlinks von dem Panels Modul verhindern kann ?
Panels hängt der URL ja ein Fragezeichen mit einer Zahl an, um das Caching zu verhindern.
Leider kommt unser Webserver damit nicht klar.
Besten Dank für die Hilfe.
- Anmelden oder Registrieren um Kommentare zu schreiben
Ich habe die Lösung selber
am 19.01.2010 - 15:30 Uhr
Ich habe die Lösung selber gefunden :)
Für alle die es interessiert, ich habe im imagefield Modul in der Moduldatei wie folgt ausgeklammert:
(5. Zeile von unten)
<?php
function theme_imagefield_image($file, $alt = '', $title = '', $attributes = NULL, $getsize = TRUE) {
$file = (array)$file;
if (!is_file($file['filepath'])) {
return '<!-- File not found: '. $file['filepath'] .' -->';
}
if ($getsize) {
// Use cached width and height if available.
if (!empty($file['data']['width']) && !empty($file['data']['height'])) {
$attributes['width'] = $file['data']['width'];
$attributes['height'] = $file['data']['height'];
}
// Otherwise pull the width and height from the file.
elseif (list($width, $height, $type, $image_attributes) = @getimagesize($file['filepath'])) {
$attributes['width'] = $width;
$attributes['height'] = $height;
}
}
if (!empty($title)) {
$attributes['title'] = $title;
}
// Alt text should be added even if it is an empty string.
$attributes['alt'] = $alt;
// Add a timestamp to the URL to ensure it is immediately updated after editing.
$query_string = '';
if (isset($file['timestamp'])) {
$query_character = (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC) == FILE_DOWNLOADS_PRIVATE && variable_get('clean_url', '0') == '0') ? '&' : '?';
$query_string = $query_character . $file['timestamp'];
}
$url = file_create_url($file['filepath']) /*. $query_string*/;
$attributes['src'] = $url;
$attributes = drupal_attributes($attributes);
return '<img '. $attributes .' />';
}
?>