Gibt es einen Weg, die i18nl10n-Mehrsprachigkeit in die Bootstrap-Navigation einzubinden bzw. eine andere Mehrsprachen-Loesung fuer Bootstrap?
Bin fuer Tipps und Vorschlaege dankbar
Gibt es einen Weg, die i18nl10n-Mehrsprachigkeit in die Bootstrap-Navigation einzubinden bzw. eine andere Mehrsprachen-Loesung fuer Bootstrap?
Bin fuer Tipps und Vorschlaege dankbar
buntwelt (Contao-Moeger)
Passe doch einfach deine Templates an. Sie dir mal die NavBars in Bootstrap an und dann baust du halt 2 Navs nebeneinander.
Eine Klicki Bunt Lösung wirst du da schwer finden.
Das mit 'einfach' anpassen ist so eine Sache, grundsaetzlich bedient sich die Bootstrap-Navi der helper-function. Und mir ist es nicht gelungen dieser beizubringen die i18nl10n-Uebersetzungen auszulesen.
Der Einsatz eines 'normalen' Navimoduls mit eigener CSS und dessen Zuweisung an die Bootstrap-Nav-Bar als Referenz ist zumindest eine anwendbare Loesung, die Intention ist jedoch ein 'reines' Bootstrap-Theme aufzubauen
buntwelt (Contao-Moeger)
Ich habe das nav_i18nl10n.html5 angepasst, nun funktioniert es auch mit contao-bootstrap:
PHP-Code:
<?php $this->import('\I18nl10n\Classes\I18nl10nFrontend', 'I18nl10n'); ?>
<?php if ($this->level == "level_1") : ?>
<ul class="<?php echo $this->level; ?> nav navbar-nav">
<?php else: ?>
<ul class="<?php echo $this->level; ?> dropdown-menu">
<?php endif; ?>
<?php foreach ($this->I18nl10n->i18nl10nNavItems($this->items) as $item): ?>
<!-- wenn Active -->
<?php if ($item['isActive']): ?>
<li class="<?php echo $item['class']; ?>">
<!-- wenn Submenu -->
<?php if(strpos($item['class'], 'submenu') !== false): ?>
<a href="#" title="<?php echo $item['pageTitle'] ? : $item['title']; ?>"<?php if ($item['class']): ?> class="dropdown-toggle" data-toggle="dropdown"<?php endif; ?><?php if ($item['accesskey'] != ''): ?> accesskey="<?php echo $item['accesskey']; ?>"<?php endif; ?><?php if ($item['tabindex']): ?> tabindex="<?php echo $item['tabindex']; ?>"<?php endif; ?><?php if ($item['nofollow']): ?> rel="nofollow"<?php endif; ?><?php echo $item['target']; ?>> <?php echo $item['link']; ?> <span class="caret"></span></a>
<!-- wenn KEIN Submenu -->
<?php else: ?>
<a href="<?php echo $item['href']; ?>" title="<?php echo $item['pageTitle'] ? : $item['title']; ?>"<?php if ($item['class']): ?> class="<?php echo $item['class']; ?>"<?php endif; ?><?php if ($item['accesskey'] != ''): ?> accesskey="<?php echo $item['accesskey']; ?>"<?php endif; ?><?php if ($item['tabindex']): ?> tabindex="<?php echo $item['tabindex']; ?>"<?php endif; ?><?php if ($item['nofollow']): ?> rel="nofollow"<?php endif; ?><?php echo $item['target']; ?>> <?php echo $item['link']; ?> </a>
<?php endif; ?>
<?php echo $item['subitems']; ?>
</li>
<!-- wenn NORMAL -->
<?php else: ?>
<li class="<?php echo $item['class']; ?>">
<!-- wenn Submenu -->
<?php if(strpos($item['class'], 'submenu') !== false): ?>
<a href="#" title="<?php echo $item['pageTitle'] ? : $item['title']; ?>"<?php if ($item['class']): ?> class="dropdown-toggle" data-toggle="dropdown"<?php endif; ?><?php if ($item['accesskey'] != ''): ?> accesskey="<?php echo $item['accesskey']; ?>"<?php endif; ?><?php if ($item['tabindex']): ?> tabindex="<?php echo $item['tabindex']; ?>"<?php endif; ?><?php if ($item['nofollow']): ?> rel="nofollow"<?php endif; ?><?php echo $item['target']; ?>> <?php echo $item['link']; ?> <span class="caret"></span></a>
<!-- wenn KEIN Submenu -->
<?php else: ?>
<a href="<?php echo $item['href']; ?>" title="<?php echo $item['pageTitle'] ? : $item['title']; ?>"<?php if ($item['class']): ?> class="<?php echo $item['class']; ?>"<?php endif; ?><?php if ($item['accesskey'] != ''): ?> accesskey="<?php echo $item['accesskey']; ?>"<?php endif; ?><?php if ($item['tabindex']): ?> tabindex="<?php echo $item['tabindex']; ?>"<?php endif; ?><?php if ($item['nofollow']): ?> rel="nofollow"<?php endif; ?><?php echo $item['target']; ?>> <?php echo $item['link']; ?> </a>
<?php endif; ?>
<?php echo $item['subitems']; ?>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
buntwelt (Contao-Moeger)
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Lesezeichen