Hallo, liebe EFG-Spezialisten,
ich habe erfolgreich (und noch nicht angehübscht) auf meiner Seite http://www.pro-d-tunnel.info/unterschriften.htm mit EFG ein Formular und die direkte Ausgabe als Tabelle erstellt. Das Template list_fd_table_default.tpl ist ja dafür zuständig. Wie oder besser wo kann ich die für mich überflüssige letzte Spalte mit dem Detail-Icon (und anderen) entfernen? Im Code des Templates geht es um diesen Bereich:
Code:
<tbody>
<?php foreach ($this->tbody as $class=>$row): ?>
<tr class="<?php echo $class; ?>">
<?php foreach ($row as $col): ?>
<td class="body <?php echo $col['class']; ?>">
<?php if ($col['type']=='file' && $col['multiple']): ?><?php foreach ($col['content'] as $file): ?><?php if ($file['display']=='image'): ?><img src="<?php echo($this->getImage($file['src'], 80, null)); ?>" alt="<?php echo urldecode(basename($file['src'])); ?>" title="<?php echo urldecode(basename($file['src'])); ?>" /><?php else: ?><img src="<?php echo $file['icon']; ?>" alt="<?php echo $file['linkTitle']; ?>" /> <a href="<?php echo $file['href']; ?>"><?php echo $file['linkTitle'] . $file['size']; ?></a><?php endif; ?><br /><?php endforeach; ?>
<?php elseif ($col['type']=='file' && $col['src']): ?><?php if ($col['display']=='image'): ?><img src="<?php echo($this->getImage($col['src'], 80, null)); ?>" alt="<?php echo urldecode(basename($col['src'])); ?>" title="<?php echo urldecode(basename($col['src'])); ?>" /><?php else: ?><img src="<?php echo $col['icon']; ?>" alt="<?php echo $col['linkTitle']; ?>" /> <a href="<?php echo $col['href']; ?>"><?php echo $col['linkTitle'] . $col['size']; ?></a><?php endif; ?>
<?php else: echo $col['content']; endif;?></td>
<?php endforeach; if ($this->details || $this->editable || $this->deletable || $this->exportable): ?>
<td class="body <?php echo $this->col_last; ?> col_last"><?php if($this->details):?> <a href="<?php echo $col['link_details']; ?>" title="<?php echo $this->textlink_details[1]; ?>"><img src="<?php echo $this->iconFolder; ?>/details.gif" alt="<?php echo $this->textlink_details[1]; ?>" title="<?php echo $this->textlink_details[1]; ?>"/></a><?php endif; ?><?php if ($this->arrEditAllowed[$col['id']]): ?> <a href="<?php echo $col['link_edit']; ?>" title="<?php echo $this->textlink_edit[1]; ?>"><img src="<?php echo $this->iconFolder; ?>/edit.gif" alt="<?php echo $this->textlink_edit[1]; ?>" title="<?php echo $this->textlink_edit[1]; ?>"/></a><?php endif; ?><?php if ($this->arrDeleteAllowed[$col['id']]): ?> <a href="<?php echo $col['link_delete']; ?>" onclick="if (!confirm('<?php echo $this->text_confirmDelete; ?>')) return false;" title="<?php echo $this->textlink_delete[1]; ?>"><img src="<?php echo $this->iconFolder; ?>/delete.gif" alt="<?php echo $this->textlink_delete[1]; ?>" title="<?php echo $this->textlink_delete[1]; ?>"/></a><?php endif; ?><?php if ($this->arrExportAllowed[$col['id']]): ?> <a href="<?php echo $col['link_export']; ?>" title="<?php echo $this->textlink_export[1]; ?>"><img src="<?php echo $this->iconFolder; ?>/exportCSV.gif" alt="<?php echo $this->textlink_export[1]; ?>" title="<?php echo $this->textlink_export[1]; ?>"/></a> <?php endif; ?></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
Ohne PHP-Kenntnisse, dafür aber mit etwas HTML, sehe ich dass die Zeilen mit <?php endforeach; bis <?php endif; ?> dafür zuständig sind. Wo aber genau muss man ansetzen, um die zu generierende Spalte zu entfernen?
Vielleicht wäre es für zukünftige EFG-Versionen sinnvoll, als Option diese Darstellung als letzte Spalte ein- oder ausschalten zu können.
Lesezeichen