Joomla 3.6.2 JP-Rooms
Hallo,
ich widme mich gerade dem Thema schema.org und stellte fest, dass obwohl unter "/modules/m
od_breadcrumb/tmpl/default.php" eigentlich ja alles für das automatische Einbinden von Schema BreadCrumbList vorhanden ist. Dennoch stellte ich fest, auch über den Google Schema Checker, dass dieser Code im Quellcode garn nicht hinterlegt ist, da wohl das Template JP-Rooms den eigenen mod_breadrcumb unter warp/systems/joomla/layouts/mod_breadcrumbs verwendet. Richtig?
Gibt es für das Template eine bestimmte Vorgehensweise oder ein bevorzugtes gutes Plugin, um das Schema ordentlich für breadcrumblist einzubinden? Habt ihr damit Erfahrungen?
Hier das Beispiel, wie es wohl von Joomla ca. hinterlegt ist:
defined('_JEXEC') or die;
JHtml::_('bootstrap.tooltip');
?>
<ul itemscope itemtype="
schema.org/BreadcrumbList
" class="breadcrumb">
<?php if ($params->get('showHere', 1)) : ?>
<li>
<?php echo JText::_('MOD_BREADCRUMBS_HERE'); ?> 
</li>
<?php else : ?>
<li class="active">
<span class="divider icon-location"></span>
</li>
<?php endif; ?>
<?php
// Get rid of duplicated entries on trail including home page when using multilanguage
for ($i = 0; $i < $count; $i++)
{
if ($i == 1 && !empty($list[$i]->link) && !empty($list[$i - 1]->link) && $list[$i]->link == $list[$i - 1]->link)
{
unset($list[$i]);
}
}
// Find last and penultimate items in breadcrumbs list
end($list);
$last_item_key = key($list);
prev($list);
$penult_item_key = key($list);
// Make a link if not the last item in the breadcrumbs
$show_last = $params->get('showLast', 1);
// Generate the trail
foreach ($list as $key => $item) :
if ($key != $last_item_key) :
// Render all but last item - along with separator ?>
<li itemprop="itemListElement" itemscope itemtype="
schema.org/ListItem
">
<?php if (!empty($item->link)) : ?>
<a itemprop="item" href="<?php echo $item->link; ?>" class="pathway"><span itemprop="name"><?php echo $item->name; ?></span></a>
<?php else : ?>
<span itemprop="name">
<?php echo $item->name; ?>
</span>
<?php endif; ?>
<?php if (($key != $penult_item_key) || $show_last) : ?>
<span class="divider">
<?php echo $separator; ?>
</span>
<?php endif; ?>
<meta itemprop="position" content="<?php echo $key + 1; ?>">
</li>
<?php elseif ($show_last) :
// Render last item if reqd. ?>
<li itemprop="itemListElement" itemscope itemtype="
schema.org/ListItem
" class="active">
<span itemprop="name">
<?php echo $item->name; ?>
</span>
<meta itemprop="position" content="<?php echo $key + 1; ?>">
</li>
<?php endif;
endforeach; ?>
</ul>
ENDE
Und hier das, wie es bei eurem / warp hinterlegt ist:
defined('_JEXEC') or die;
?>
<ul class="uk-breadcrumb"><?php
if (!$params->get('showLast', 1)) array_pop($list);
$count = count($list);
for ($i = 0; $i < $count; $i ++) {
// clean subtitle from breadcrumb
if ($pos = strpos($list[$i]->name, '||')) {
$name = trim(substr($list[$i]->name, 0, $pos));
} else {
$name = $list[$i]->name;
}
// mark-up last item as strong
if ($i < $count-1) {
if (!empty($list[$i]->link)) {
echo '<li><a href="'.$list[$i]->link.'">'.$name.'</a></li>';
} else {
echo '<li><span>'.$name.'</span></li>';
}
} else {
echo '<li class="uk-active"><span>'.$name.'</span></li>';
}
}
?></ul>
Vielen Dank für die Hilfe