Category Sources for Craft 3? I'm updating a site from Craft 2 to Craft 3 and can't find the equivalent of the 'Category Sources' plugin? It's really useful when it comes to restricting the source for related entries by the category the entry belongs to. Does anybody know of an alternative solution?

Thanks.
There's a Craft 3 port of Category Sources in the v2 branch for the repo. It doesn't appear to be published to Packagist and the Plugin Store, which means you'll need to add the URL for the plugin's Git repository to your project's composer.json file in order for Composer to find it.

Add the following to the root of your composer.json file:

"repositories": {
    "craftcms/category-sources": {
        "type": "git",
        "url": "git@github.com:pixelandtonic/CategorySources.git",
        "trunk-path": "v2"
    }
}


You might also need to add the following to composer.json:

"minimum-stability": "dev",
"prefer-stable": true,


Then, you can do composer require craftcms/category-sources to actually download the plugin.

Note: I haven't tested this plugin myself, and the fact that it isn't released probably means it's not completely ready for primetime (it might not even work at all, with recent versions of Craft 3). Proceed with caution; you might also want to get in touch with Pixel &amp; Tonic to hear if the plugin is likely to get a proper release anytime soon.