bhashkar007 / guest-entries-notification

A plugin to get notification when an entry is created.
MIT License
4 stars 4 forks source link

Guest entries 4 and Craft 5 support #14

Open jannisborgers opened 1 month ago

jannisborgers commented 1 month ago

A wonderful plugin that adds essential functionality to the Guest Entries plugin. Thank you!

Do you plan on updating the plugin to support Guest Entries 4 and Craft 5? Guest Entries 4 is the latest version for Craft 4, but I cannot update from Guest Entries 3 because your plugin requires version 3 of that plugin.

As a workaround I copied the repo to [project root]/plugins-local and made the following changes to the local plugin’s composer.json file:

{
    "version": "3.0.0",
    "require": {
        "craftcms/guest-entries": "^4.0.0"
    },
}

Then I updated the project’s composer.json like so:

{
    "require": {
        "craftcms/guest-entries": "^4.0.0",
        "by/guest-entries-notification": "^3.0"
    },
    "repositories": [
        {
          "type": "path",
          "url": "./plugins-local/guest-entries-notification"
        }
    ]
}

Testing the basic functionality (without template overrides), the plugin works just the same as before 🎉

I suspect but cannot verify that changing the craftcms/cms dependency to ^5.0.0 in the project’s composer.json would make it work with Craft 5 as well. I have other plugins in this project that cannot be updated to Craft 5 yet, so I’ll have to wait until the developers update them.

CopulaTech commented 3 weeks ago

I'd like to add my support for an update, please.