Hallo!
Ich möchte die Newsbox auf der Startseite (Bild mit Text innerhalb - News Latest) komplett als Link haben.
Dazu habe ich die news_latest.html5 verändert:
jedoch funktioniert das so nicht.Code:<!--- HINGEZUGEFÜGT ---> <?php if ($this->href): ?> <a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>"> <?php endif; ?> <!--- ENDE HINGEZUGEFÜGT ---> <div class="layout_latest block<?php echo $this->class; ?>"> <?php if ($this->hasMetaFields): ?> <p class="info"><time datetime="<?php echo $this->datetime; ?>"><?php echo $this->date; ?></time> <?php echo $this->author; ?> <?php echo $this->commentCount; ?></p> <?php endif; ?> <?php if ($this->addImage): ?> <figure class="image_container<?php echo $this->floatClass; ?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin . $this->float); ?>"<?php endif; ?>> <?php if ($this->href): ?> <a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>"> <?php endif; ?> <img src="<?php echo $this->src; ?>"<?php echo $this->imgSize; ?> alt="<?php echo $this->alt; ?>"> <?php if ($this->href): ?> </a> <?php endif; ?> <?php if ($this->caption): ?> <figcaption class="caption" style="width:<?php echo $this->arrSize[0]; ?>px"><?php echo $this->caption; ?></figcaption> <?php endif; ?> </figure> <?php endif; ?> <h2><?php echo $this->linkHeadline; ?></h2> <div class="teaser"> <?php echo $this->teaser; ?> <?php if ($this->text): ?> <p class="more"><?php echo $this->more; ?></p> <?php endif; ?> </div> </div> <!--- HINGEZUGEFÜGT ---> <?php if ($this->href): ?> </a> <?php endif; ?> <!--- ENDE HINGEZUGEFÜGT --->
Es gibt kein "($this->href)" - also keinen LInk der da eingebaut werden kann.
Wie kann ich den Link zur Detailansicht einfügen?
Danke
Lesezeichen