- Contao
4.13 || ^5.3
- PHP
8.1
hofff / contao-navigation Goto Github PK
View Code? Open in Web Editor NEWAdvanced navigation modules for Contao OpenSource CMS
Home Page: http://www.hofff.com
Advanced navigation modules for Contao OpenSource CMS
Home Page: http://www.hofff.com
pls add readme.md
Hallöchen,
ich hoffe ich bin mir meiner Anfrage hier richtig, denn ich habe einen Vorschlag/Änderungswunsch für die Navigation:
Die Option "Als Sitemap anzeigen" sollte unabhängig von der Option "Versteckte Seiten anzeigen" funktionieren. Korrigiert mich bitte wenn ich das falsch verstehe, aber die Tatsache, dass die Sitemap-Einstellungen ignoriert werden wenn ich Seiten mit der Option "Im Menu verstecken" anzeigen lassen will, ergibt für mich keinen Sinn.
Mein aktueller Fall:
Wenn jetzt die Backbone-Navigation die Sitemap-Einstellung ignoriert, nur weil die Seite im Menü versteckt ist, hab ich die unerwünschten Seiten ja dennoch in meiner mobilen Navigation, aber ich will sie nirgends haben. :)
VG
Nicole
Aktuelll benötigt die Erweiterung noch php: ^5.3 || ^7.0, ist eine Anpassung auf PHP 8 geplant?
Ich setze die Erweiterung sehr oft ein, allerdings wird PHP 7.4 nur noch bis Ende 2022 mit Sicherheitsupdates unterstützt. Ich bräuchte also etwas Planbarkeit. :)
For some strange reasons the $GLOBALS['objPage']->id is sometimes a string. So when checking for the active id on https://github.com/backbone87/contao-navigation/blob/1.x/TL_ROOT/system/modules/backboneit_navigation/AbstractModuleNavigation.php#L341 and https://github.com/backbone87/contao-navigation/blob/1.x/TL_ROOT/system/modules/backboneit_navigation/AbstractModuleNavigation.php#L346 the result is wrong.
You would either do a type cast when setting $this->varActiveID or just test with ==
Hello, I'm using the develop branch and php8.0 in my project.
If I enter the module in backend with debug modus on, I get the title warning message.
Stack Trace:
ErrorException:
Warning: Trying to access array offset on value of type null
at vendor/hofff/contao-navigation/src/EventListener/Dca/NavigationDcaListener.php:46
at Hofff\Contao\Navigation\EventListener\Dca\NavigationDcaListener->getPageFields()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Widget.php:1319)
at Contao\Widget::getAttributesFromDca()
(vendor/contao/core-bundle/src/Resources/contao/classes/DataContainer.php:433)
at Contao\DataContainer->row()
(vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php:1942)
at Contao\DC_Table->edit()
(vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:667)
at Contao\Backend->getBackendModule()
(vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:168)
at Contao\BackendMain->run()
(vendor/contao/core-bundle/src/Controller/BackendController.php:49)
at Contao\CoreBundle\Controller\BackendController->mainAction()
(vendor/symfony/http-kernel/HttpKernel.php:152)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:74)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle()
(public/index.php:44)
vendor/hofff/contao-navigation/src/EventListener/Dca/NavigationDcaListener.php:46
Code Snippet:
41 foreach ($GLOBALS['TL_DCA']['tl_page']['fields'] as $fieldName => &$config) {
42 if (isset(PageQueryBuilder::DEFAULT_FIELDS[$fieldName])) {
43 continue;
44 }
45
46 $fields[$fieldName] = sprintf('%s <span class="tl_gray">[%s]</span>', $config['label'][0], $fieldName);
47 }
Verwendetes Template: nav_default (Original)
Hi,
Wie kann man mit dem "bbit_navi_item" Hook einen Menüpunkt nachträglich entfernen?
Wenn ich im Hook
unset($module->arrItems[$page_id])
schreibe, bekomme ich (selbstverständlich) die folgende Fehlermeldung:
Recoverable error: Argument 1 passed to AbstractModuleNavigation::compileNavigationItem() must be of the type array, null given
weil (vermutlich) die Seite auf der vorherigen Ebene immer noch definiert ist.
Danke für die Hilfe!
Da die Seiten vom Typ "Ordner" nicht ausgeblendet sind, werden sie natürlich mit angezeigt, wenn man die Option "Versteckte Seiten anzeigen" im Navi-Modul aktiviert. Das sollte nicht sein, denn die Ordner sollten niemals angezeigt werden.
Akteull ist es so, dass bei einer Auswahl von mehreren Referenzseiten die Reihenfolge der Referenzseiten durch die Reihenfolge in der Seitenstruktur bestimmt wird. Es wäre sehr praktisch, wenn die (wie bei einer Galerie) auch individuell sortierbar wären an der Stelle.
Viele Grüße
wenn man mehrere Referenzseiten auswählen möchte, so kann man das zwar im Lightbox-Fenster machen und die mehrfach ausgewählten Seiten werden zwar dann unter Referenzseiten angezeigt, aber nach dem Speichern steht nur die erste ausgewählte Seite da und es ist auch nur diese Seite ausgewählt.
Contao 3.2.2
Fatal error: Call to a member function prepare() on a non-object in /home/httpd/docs/faz-goethe/system/modules/backboneit_navigation/AbstractModuleNavigation.php on line 403
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.