Giter Site home page Giter Site logo

contao-navigation's Introduction

Advanced navigation module for Contao CMS

Requirements

  • Contao 4.13 || ^5.3
  • PHP 8.1

contao-navigation's People

Contributors

aschempp avatar backbone87 avatar davidmaack avatar discordier avatar dmolineus avatar frontendschlampe avatar stefanheimes avatar zonky2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

contao-navigation's Issues

Wunsch: Option "Als Sitemap anzeigen" unabhängig

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:

  • Ich habe eine Standard-Contao-Navigation als Hauptnavigation die nur Seiten zeigt deren Option "im Menü verstecken" nicht aktiviert ist.
  • Ich habe die Backbone-Navigation als mobile Navigation und zeige hier auch Seiten an, die im Hauptmenü versteckt sein sollen (bspw. das Impressum).
  • Ich habe Seiten, die nirgends in der Navigation auftauchen sollen (bspw. "Kontaktformular gesendet"). Hier habe ich die Optionen "im Menü verstecken" und "niemals in Sitemap anzeigen" aktiviert.

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

PHP 8

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. :)

isActive flag is not set correctly

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 ==

Warning: Trying to access array offset on value of type null

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 }

Menüpunkt löschen

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!

Problem mit der Erweiterung "folderpage"

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.

Referenzseiten Sortierbar machen

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

Mehrfachauswahl nicht möglich

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

Error with forward to non-existing page

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.