Hab doch noch ein Problem.
Damit ändere ich in allen Nachrichtenarchive den Wert. Da ich min. zwei Nachrichtenarchive habe und das nur bei einem ändern möchte, funktioniert das nicht so.
Ich habe das news_latest.html5 Template schon angepasst und kann darin die Bezeichnung ändern. Ich weiß nur nicht wie ich das bei den Bildern anpassen kann.
Code:
<div class="layout_latest arc_<?= $this->archive->id ?> block<?= $this->class ?>">
<div class="item-arrangement">
<?php if ($this->addImage): ?>
<div class="arrangement-teaser-image">
<?php $this->insert('image', $this->arrData); ?>
</div>
<?php endif; ?>
</div>
<div class="item-arrangement">
<h2><a href="<?= $this->link ?>" title="Das Arrangement anschauen: <?= $this->newsHeadline ?>">
<span class="headline"><?= $this->newsHeadline ?></span>
<?php if ($this->hasSubHeadline): ?>
<span class="headline-bottom"><?= $this->subHeadline ?></span>
<?php endif; ?>
</a></h2>
<div class="ce_text block">
<?= $this->teaser ?>
<?php if ($this->priceA): ?>
<p><span class="price-wrapper"><sup>ab</sup> <?= $this->priceA ?> € <sub>/ pro Nacht</sub></span></p>
<?php endif; ?>
</div>
<?php if ($this->hasText || $this->hasTeaser): ?>
<?php $label_button_details_readmore = $this->replaceInsertTags( '{{label::CUSTOM:readmore}}' ); ?>
<div class="btn-news-more container-btn-ani1">
<a class="btn btn-ani1" href="<?= $this->link ?>" title="Das Arrangement anschauen: <?= $this->newsHeadline ?>" itemprop="url">
<span><?php echo $label_button_details_readmore;?></span>
</a>
</div>
<?php endif; ?>
</div>
</div>
<?php
// This template is used as a news list template by default, so we only add
// JSON-LD data in case this is a news article without a reader
if (!$this->hasReader) {
$this->addSchemaOrg($this->getSchemaOrgData());
}
Ich würde jetzt gern im Template das das Bild so ausgeben das ich das title Attribute vom a Tag änder, sowie bei dem Button.
Kann ich <?php $this->insert('image', $this->arrData); ?> so umschreiben damit ich das title Attribut manuell vergebe?
Lesezeichen