gallery assist -> submitted (erstellt von ...)

am 11.06.2010 - 20:24 Uhr in
Hallo zusammen,
gerade bin ich ein wenig verzweifelt, nach 1 Std google quälen und die SuFu von Drupalcenter.de... Habe auch den unteren Link gefunden:
http://www.drupalcenter.de/node/22385#comment-80429
Ich kriege die Zeile "erstellt von.." nicht raus, obwohl es im Theme aufjedenfall deaktiviert ist, nun bin ich in den Ordner:
/drupal/sites/all/modules/gallery_assist/templates/
geklettert und habe die Datei "gallery-assist-item.tpl.php" mir angesehen, die wie folgt aussieht:
<?php
// $Id: gallery-assist-item.tpl.php,v 1.0 2009/11/19 16:11:12 jcmc Exp $
/**
* @file
* Default theme implementation to display a Gallery Assist Item (image in this case).
*
* Available variables:
*
* - $item: An object with the necesary content to display the gallery item.
* - contains
* - $item->nid
* - $item->nodetype
* - $item->title
* - $item->submitted
* - $item->preview_size
* - $item->img
* - $item->ppath
* - $item->ptitle
* - $item->pdescription
* - $item->copyright
* - $item->top
* - $item->pager
* - $item->adm_link
* - $item->download_path
* - $item->link
* - $item->links
* - $item->extra_styles
*
* @see theme_gallery_assist_item()
* @see gallery_assist_item_pager()
* @see gallery-assist-pager.tpl.php
*/
?>
<div class="clear-block">
<div id="node-<?php print $item->nid; ?>" class="node">
<span class="submitted"><?php print $item->submitted; ?></span>
<div class="clear-block ga-edit-item-link"><?php print $item->links; ?></div>
<div class="content clear-block">
<?php if ($item->top == 1 || $item->top == 3) { ?>
<!-- Print the pager acord settings. -->
<div id="ga-pager" class="<?php print $item->nodetype; ?> ga-pager clear-block"><?php print $item->pager; ?></div>
<?php } ?>
<!-- Print the item image. -->
<div id="ga-image-display" class="<?php print $item->nodetype; ?> ga-image-display" style="max-width:<?php print $item->preview_size; ?>px; max-height:<?php print $item->preview_size; ?>px;<?php print $item->extra_styles . $item->img_extra_styles; ?>">
<?php print $item->img; ?>
</div>
<?php if ($item->top == 0 || $item->top == 3) { ?>
<!-- Print the pager acord settings. -->
<div id="ga-pager" class="<?php print $item->nodetype; ?> ga-pager clear-block"><?php print $item->pager; ?></div>
<? } ?>
<?php if (!empty($item->copyright)) { ?>
<!-- Information from Author or copyright. -->
<div id="gallery-item-copyright" class="<?php print $item->nodetype; ?> gallery-item-copyright" style="max-width:<?php print $item->preview_size; ?>px;<?php print $item->extra_styles; ?>">© <?php print $item->copyright; ?></div>
<? } ?>
<?php if ($item->ptitle) { ?>
<!-- Title of the item (image). You can use the if condition as by copyright. -->
<div id="gallery-item-caption-title" class="<?php print $item->nodetype; ?> gallery-item-caption-title" style="max-width:<?php print $item->preview_size; ?>px;<?php print $item->extra_styles; ?>"><?php print $item->ptitle; ?></div>
<?php } ?>
<?php if ($item->pdescription) { ?>
<!-- Gallery item description. You can use the if condition as by copyright. -->
<div id="gallery-item-caption-text" class="<?php print $item->nodetype; ?> gallery-item-caption-text" style="max-width:<?php print $item->preview_size; ?>px;<?php print $item->extra_styles; ?>"><?php print $item->pdescription; ?></div>
<?php } ?>
<!-- Download link. -->
<div id="gallery-item-download-link" class="<?php print $item->nodetype; ?> gallery-item-download-link" style="max-width:<?php print $item->preview_size; ?>px;<?php print $item->extra_styles; ?>">
<a title="Download original image." href="<?php print $item->download_path; ?>">download</a>
</div>
</div>
</div>
</div>
Entscheidend dürfte die Zeile sein:
<span class="submitted"><?php print $item->submitted; ?></span>
Jedoch bringt es keinerlei Veränderung, diese zu löschen auch nach leeren des Caches... Hat jemand eine Idee für mich?!
Vielen dank im vorraus.
- Anmelden oder Registrieren um Kommentare zu schreiben
submitted ausblenden
am 12.06.2010 - 10:24 Uhr
Hallo,
den Code eines Moduls zu verändern - auch der Template-Dateien - wird beim nächsten update zu Problemen führen, da beim update die geänderte Datei überschrieben wird.
Um die Anzeige von "submitted" zu unterdrücken, könntest Du einfach im css die entsprechende Klasse (#gallery-assist span.submitted) auf "display:none" setzen.
JM-Bonn schrieb Hallo, den
am 12.06.2010 - 14:16 Uhr
Hallo,
den Code eines Moduls zu verändern - auch der Template-Dateien - wird beim nächsten update zu Problemen führen, da beim update die geänderte Datei überschrieben wird.
Um die Anzeige von "submitted" zu unterdrücken, könntest Du einfach im css die entsprechende Klasse (#gallery-assist span.submitted) auf "display:none" setzen.
Ja stimmt, das hätte ich dann einfach in Kauf genommen, aber manchmal denkt man echt zu kompliziert - vielen Dank. :-)