Hallo,
ich möchte bei meinem Navigationspfad das template ändern. Und zwar soll es so sein, dass auch der span zu einem a mit href umgewandelt werden soll. Das heißt, dass ich auf der Seite in der ich mich befinde auch ein link sein soll.
das ist der code
Code:
<!-- indexer::stop -->
<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->items as $item): ?>
<?php if ($item['isActive']): ?>
<span class="active"><?php echo $item['title']; ?></span>
<?php else: ?>
<a href="<?php echo $item['href']; ?>" title="<?php echo $item['title']; ?>"><?php echo $item['link']; ?></a> >
<?php endif; ?>
<?php endforeach; ?>
</div>
<!-- indexer::continue -->
habe schon versucht die span-zeile durch die a reile zu ersetzen aber dann ensteht zwar ein link aber der href bleibt leer und es wechselt auf die Startseite. Habe leider fast null Ahnung.
ich hoffe ich hab mich verständlich ausgedrückt
Lesezeichen