inspiredminds / contao-sibling-navigation

Provides a previous/next navigation for news & events.
GNU Lesser General Public License v3.0
6 stars 0 forks source link

Module is not available in Backend when calendar is not installed #11

Closed CMSworker closed 2 years ago

CMSworker commented 2 years ago

Problem description: When the calendar extension is not installed you can't create a siblings module for news.

First test (base):

Second test:

Third test:

fritzmg commented 2 years ago

Hm, I could not reproduce. With only the following present in the composer.json:

{
    "name": "contao/managed-edition",
    "type": "project",
    "require": {
        "contao/conflicts": "@dev",
        "contao/core-bundle": "^4.12",
        "contao/manager-bundle": "4.12.*",
        "contao/news-bundle": "^4.12",
        "inspiredminds/contao-sibling-navigation": "^1.3"
    },
    "extra": {
        "contao-component-dir": "assets"
    },
    "scripts": {
        "post-install-cmd": [
            "@php vendor/bin/contao-setup"
        ],
        "post-update-cmd": [
            "@php vendor/bin/contao-setup"
        ]
    }
}

the module News sibling navigation is available for selection in the back end.

CMSworker commented 2 years ago

Tried it with a new installation, same problem. Maybe it's related to the order of installing everything with Contao Manager? Here more detailed step-by-step:

  1. Download contao-manager.phar from contao.org, save in /web/ directory, add .php at the end
  2. Open Contao Manager in browser, add user account
  3. Install Contao, minimal version (just core) screenshot1
  4. Open the Contao install tool to add database infos and finish core installation
  5. Back to Contao Manager: Add the Contao Core News module screenshot2
  6. Open the Contao install tool again to finish the news installation (add news tables)
  7. Back to Contao Manager: Add the siblings extension screenshot3
  8. Open the Contao install tool again to finish siblings installation
  9. Login to Contao backend, create a new Theme (I just named it "Test" and didn't add anything to it for testing)
  10. Go to the theme's module page, create a new module -> it is not possible to select the siblings navigation, it is missing in the dropdown list screenshot4b

It is also not visible when you create a test news archive and some test news entries.

The composer.json is looking like this after installation as described:


{
    "type": "project",
    "require": {
        "contao/conflicts": "*@dev",
        "contao/manager-bundle": "4.12.*",
        "contao/news-bundle": "4.12.*",
        "inspiredminds/contao-sibling-navigation": "^1.3"
    },
    "extra": {
        "contao-component-dir": "assets"
    },
    "scripts": {
        "post-install-cmd": [
            "@php vendor/bin/contao-setup"
        ],
        "post-update-cmd": [
            "@php vendor/bin/contao-setup"
        ]
    }
}
fritzmg commented 2 years ago

Please test dev-master, may be that will fix it.

CMSworker commented 2 years ago

Yes that seems to fix it.

screenshot-7

screenshot-8

Before I also made a test with installing Contao full and than removing Calendar etc. and adding the siblings extension (1.3.1), this way the module is also not selectable in the dropdown list (probably not relevant anymore after the fix)

screenshot1

screenshot2

screenshot3

screenshot4

screenshot4b

Thank you for the extension and your support!

CMSworker commented 2 years ago

Just repeated my first test (install Contao minimal, add news, than add siblings extension), but with siblings "dev-master". It works, the module is available in the module select list in backend.

fritzmg commented 2 years ago

Released as 1.3.2.