
Code:
[...] $schemaOrg = $this->getSchemaOrgData(); $schemaOrg['primaryImageOfPage']['contentUrl'] = $this->singleSRC; [---]
Code:
<?php
use Contao\FilesModel;
use Contao\StringUtil;
?>
<div class="<?= $this->class ?>">
<?php
if ($this->hasImage): ?>
<?php $this->insert('image', (array) $this->image) ?>
<?php
$strTitle = '';
$objFilesModel = FilesModel::findByPath( $this->image->singleSRC );
if( $objFilesModel !== null )
{
$arrMeta = StringUtil::deserialize($objFilesModel->meta);
$strTitle = $arrMeta['de']['title']; // hier Sprachunterscheidung
}
?>
<p>Bildtitel: <?= $strTitle; ?>
<?php endif; ?>
<h3><a href="<?= $this->href ?>" title="<?= $this->title ?>"><?= $this->link ?></a></h3>
<?php if ($this->context): ?>
<p class="context"><?= $this->context ?></p>
<?php endif; ?>
<p class="url"><?= $this->url ?></p>
</div>

Einen Kommentar schreiben: