Sitemap
administrator 
hat diese Frage am gestellt
<?php
if(strlen(arg(2)) == 1){
echo "<h2>Stichworte ".arg(2)."</h2>";
}
?>
<a href="/sitemapA">A</a> | <a href="/sitemapB">B</a> | <a href="/sitemapC">C</a> | <a href="/sitemapD">D</a> | <a href="/sitemapE">E</a> | <a href="/sitemapF">F</a> | <a href="/sitemapG">G</a> | <a href="/sitemapH">H</a> | <a href="/sitemapI">I</a> | <a href="/sitemapJ">J</a> | <a href="/sitemapK">K</a> | <a href="/sitemapL">L</a> | <a href="/sitemapM">M</a> | <a href="/sitemapN">N</a> | <a href="/sitemapO">O</a> | <a href="/sitemapP">P</a> | <a href="/sitemapQ">Q</a> | <a href="/sitemapR">R</a> | <a href="/sitemapS">S</a> | <a href="/sitemapT">T</a> | <a href="/sitemapU">U</a> | <a href="/sitemapV">V</a> | <a href="/sitemapW">W</a> | <a href="/sitemapX">X</a> | <a href="/sitemapY">Y</a> | <a href="/sitemapZ">Z</a>
<br><br>
<?php
if(strlen(arg(2)) == 1){
// This snippet produces a list of terms within a given vocabulary
// Includes links to terms and number of nodes.
// Shared by Sverre - September 2006
// Drupal 4.7 tested
$vid = 2; // Change to appropriate vocabulary id
$result = db_query(db_rewrite_sql('SELECT t.tid, t.name, t.description, COUNT(*) as count FROM {term_data} t INNER JOIN {term_node} tn ON t.tid = tn.tid WHERE t.vid = %d AND t.name like \''.arg(2).'%\' GROUP BY t.tid, t.name ORDER BY weight, name', 't', 'tid'), $vid);
$items = array();
while ($category = db_fetch_object($result)) {
# $items[] = l($category->name .' ('. $category->count .')', 'taxonomy/term/'. $category->tid);
$items[] = l($category->name , 'taxonomy/term/'. $category->tid);
}
//Anzahl Spalten der Tabelle
$SPALTEN = 3;
echo "<table border=\"0\">\n </tr>\n";
for ($num = 0; $num < count($items); $num++){
if ($num % $SPALTEN == 0 && $num > 0){
// Neue Zeile beginnen
echo " </tr>\n </tr>\n";
}
echo " <td>$items[$num]</td>\n";
}
//Ganz wichtig: Die Tabelle könnte noch unvollständig sein.
// D.h.: Wir haben 3 Spalten in der aktuellen zeile aber nur 2
// Einträge. Das wird hier gefixt.
if ($num % $SPALTEN != 0){
echo " <td colspan = \"". ($num % $SPALTEN) ."\"> </td>\n";
}
echo " </tr>\n";
echo "</table>";
}
?>