Bonjour Lionel,
du musst mod_tagcloud.tpl überschreiben. Der Code, z.B. für die Tag Cloud (in Zeile 32-34) lautet:
PHP-Code:
<?php foreach ($this->tags as $tag): ?>
<li class="<?php echo $tag['tag_class']; ?>"><?php if (strlen($this->jumpTo)): ?><a href="<?php echo $tag['tag_url']; ?>" title="<?php echo $tag['tag_name'] . ' (' . $tag['tag_count'] . ')'; ?>"><?php endif; ?><?php echo $tag['tag_name']; ?><?php if (strlen($this->jumpTo)): ?></a><?php endif; ?></li>
<?php endforeach; ?>
Für deinen Zweck musst du den Code folgendermaßen ändern:
PHP-Code:
<?php foreach ($this->tags as $tag): ?>
<li class="<?php echo $tag['tag_class']; ?>"><?php if (strlen($this->jumpTo)): ?><a href="<?php echo $tag['tag_url']; ?>" title="<?php echo $tag['tag_name'] . ' (' . $tag['tag_count'] . ')'; ?>"><?php endif; ?><?php echo $tag['tag_name'] . ' (' . $tag['tag_count'] . ')'; ?><?php if (strlen($this->jumpTo)): ?></a><?php endif; ?></li>
<?php endforeach; ?>
Die Anzahl der Treffer eines Tags steht in der PHP-Variable
PHP-Code:
$tag['tag_count']
.
Viele Grüße,
Helmut
Lesezeichen