Goffy
Co-Administrator
Gepostet am:10.03.2021 22:06
#31
2) Breadcrumbs dem Template zuweisen
3) Template die Ausgabe hinzufügen
:)
Aw: MyAlbum-P für Xoops 2.5.11
10.03.2021 22:06 hi 1) Breadcrumbs erstellen
$xoBreadcrumbs = [];
//Link hinzufügen
$xoBreadcrumbs[] = ['title' => 'Mein Linktitel 1', 'link' => '/modules/mymodule/index.php'];
// Element ohne Link hinzufügen
$xoBreadcrumbs[] = ['title' => 'Mein Linktitelc 2'];
if (count($xoBreadcrumbs) > 1) {
$GLOBALS['xoopsTpl']->assign('xoBreadcrumbs', $xoBreadcrumbs);
}
<ol class='breadcrumb'>
<li class='breadcrumb-item'><a href='<{xoAppUrl index.php}>' title='home'><i class="glyphicon glyphicon-home"></i></a></li>
<{if $xoBreadcrumbs|default:''}>
<{foreach item=itm from=$xoBreadcrumbs name=bcloop}>
<li class='breadcrumb-item'>
<{if $itm.link|default:''}>
<a href='<{$itm.link}>' title='<{$itm.title}>'><{$itm.title}></a>
<{else}>
<{$itm.title}>
<{/if}>
</li>
<{/foreach}>
<{/if}>
</ol>
EDV = Epoche der Verzweiflung