Hier das mod_glossary_list Template, das verändert werden muss:
PHP-Code:
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
<?php endif; ?>
<?php foreach ($this->terms as $key=>$terms): ?>
<p class="toplink"><a href="<?php echo $this->request; ?>#top"><?php echo $this->topLink; ?></a></p>
<h2 id="<?php echo $terms[0]->anchor; ?>"><?php echo $key; ?></h2>
<dl>
<?php foreach ($terms as $term): ?>
<dt><?php echo $term->term; ?></dt>
<dd>
<div class="ce_text block">
<?php if (!$term->addBefore): ?>
<?php echo $term->definition; ?>
<?php endif; ?>
<?php if ($term->addImage): ?>
<div class="image_container<?php echo $term->floatClass; ?>"<?php if ($term->margin || $term->float): ?> style="<?php echo trim($term->margin . $term->float); ?>"<?php endif; ?>>
<?php if ($term->href): ?>
<a href="<?php echo $term->href; ?>"<?php echo $term->attributes; ?> title="<?php echo $term->alt; ?>">
<?php endif; ?>
<img src="<?php echo $term->src; ?>"<?php echo $term->imgSize; ?> alt="<?php echo $term->alt; ?>" />
<?php if ($term->href): ?>
</a>
<?php endif; ?>
<?php if ($term->caption): ?>
<div class="caption"><?php echo $term->caption; ?></div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($term->addBefore): ?>
<?php echo $term->definition; ?>
<?php endif; ?>
</div>
<?php if ($term->enclosure): ?>
<div class="enclosure">
<?php foreach ($term->enclosure as $enclosure): ?>
<p><img src="<?php echo $enclosure['icon']; ?>" width="18" height="18" alt="<?php echo $enclosure['title']; ?>" class="mime_icon" /> <a href="<?php echo $enclosure['href']; ?>" title="<?php echo $enclosure['title']; ?>"><?php echo $enclosure['link']; ?> <span class="size">(<?php echo $enclosure['filesize']; ?>)</span></a></p>
<?php endforeach; ?>
</div>
<?php endif; ?>
</dd>
<?php endforeach; ?>
</dl>
<?php endforeach; ?>
</div>
Anmerkung zu ciaobello:
Mir geht es nicht darum, eine fertige Lösung zu bekommen. Ich möchte mit der Hilfe der Community eine Lösung finden.
Ich hab nur deshalb nochmal gefragt, weil ich an diesem Problem schon seit Tagen hänge. Nichts für ungut
Gruss
Lesezeichen