Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resave Campaigns via CLI #481

Closed
shifuma opened this issue Jun 18, 2024 · 3 comments
Closed

Resave Campaigns via CLI #481

shifuma opened this issue Jun 18, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@shifuma
Copy link

shifuma commented Jun 18, 2024

Feature Request

Is it possible to add a Console Command like php craft campaign/resave to resave campaigns? Use case is to merge some fields after a Craft 5 upgrade, using --set myField --to myOtherField.

Plugin Version

3.1.4

@shifuma shifuma added the enhancement New feature or request label Jun 18, 2024
@bencroker
Copy link
Collaborator

Thanks for the suggestion! Added the following commands in 60180dd for the next release.

php craft resave/campaigns
php craft resave/contacts
php craft resave/mailing-lists

You can test this by running composer require "putyourlightson/craft-campaign:dev-develop as 3.2.0".

@shifuma
Copy link
Author

shifuma commented Jun 19, 2024

This is great, thanks! As I was working, I realised that maybe my use case didn't need it -- as I have a Matrix Field for my Campaigns, I needed to resave the entries instead. But still useful for other fields. Thank you!

@bencroker
Copy link
Collaborator

Released in 2.16.0 and 3.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants