Hot answers tagged

2

Try changing it to this: "nystudio107/craft-seomatic": "^3.3.0",


2

You will need to enable it to uninstall it but you can do everything via CLI. First ./craft plugin/enable plugin-handle then ./craft plugin/uninstall plugin-handle then composer remove namespace/package-name. If you really can't enable it as above, you'd need to composer remove namespace/package-name and manually remove any references in your plugins table, ...


2

You can pass a list type handle in the query like this: {% set compare = craft.wishlist.item(entry.id, null, 'compare') %} I had to look at the source code for the craft.wishlist variable to confirm what that's doing, though! The Wishlist docs on checking if an item is in a list aren't super-clear on this, but passing the list type handle in the query will ...


2

I've managed to get it working with great help from Brad Bell and Oli. The following code changes feedme slugs on Import. use craft\feedme\events\ElementEvent; use craft\helpers\ElementHelper; use craft\elements\Entry; Adding the following Event with the namespaces above works nicely. Event::on( Process::class, Process::...


1

If you look in your config/general.php, you will probably find that you have 'allowUpdates' => false set for the environment you are trying to trial the plugin on (stage/prod?). Change that to 'allowUpdates' => true and you will be able to install what you want.


1

Okay, so this seems to be the incompatibility issue between craftcms/plugin-installer < 1.5.6 and Composer 2: https://github.com/craftcms/plugin-installer/issues/5 The solution is to update in multiple steps: Do a normal composer update, which will fail for a couple of plugins, but will update craftcms/plugin-installer to 1.5.6. Delete the vendor folder. ...


1

Your code looks correct. Test with the following code in brands/_followButton. {{ currentUser ? 'Logged in' : 'Logged out' }} For some reason, it's not working and I can't figure out why. Can you explain what specifically is not working? And provide the version of Blitz that you're using?


Only top voted, non community-wiki answers of a minimum length are eligible