MyXoops Forum

Forum - myXOOPS German Support

9 - 5 = ?  
Geben Sie das Ergebnis der Berechnung ein
Sie haben max. 10 Versuche.
 
* = Erforderlich

Aw: MyAlbum-P für Xoops 2.5.11

Betreff: Aw: MyAlbum-P für Xoops 2.5.11
von Goffy am 10.03.2021 22:06:16

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'];
2) Breadcrumbs dem Template zuweisen
if (count($xoBreadcrumbs) > 1) {
    
$GLOBALS['xoopsTpl']->assign('xoBreadcrumbs'$xoBreadcrumbs);
}
3) Template die Ausgabe hinzufügen
<ol class='breadcrumb'>
    <
li class='breadcrumb-item'><a href='<{xoAppUrl index.php}>' title='home'><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>
:)

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
Modulentwicklung New Xoops Xcreate Module 0 5266 26.11.2025 15:22
efkan Gehe zum letzten Beitrag
Modulentwicklung XOOPS Custom Field Module 1 1782 24.11.2025 11:21
Goffy Gehe zum letzten Beitrag