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

Recipe field inside Matrix block. #63

Closed
keyname opened this issue Feb 21, 2023 · 8 comments · Fixed by #64
Closed

Recipe field inside Matrix block. #63

keyname opened this issue Feb 21, 2023 · 8 comments · Fixed by #64

Comments

@keyname
Copy link

keyname commented Feb 21, 2023

When I place the Recipe field in a Matrix block, I get an error where the API cannot fetch the data or see that ingredients have been added.

The message shown is "Please provide some ingredients first."... no matter how many ingredients I add.

(I've confirmed that the API can fetch the same ingredient data when not in a Matrix block.)

@khalwat
Copy link
Contributor

khalwat commented Feb 21, 2023

This has been addressed. Try it out and let me know if it fixes your issue. Thx @bencroker

Craft CMS 3:

You can try it now by setting your semver in your composer.json to look like this:

    "nystudio107/craft-recipe": "dev-develop as 1.4.2",

Then do a composer clear-cache && composer update

…..

Craft CMS 4:

You can try it now by setting your semver in your composer.json to look like this:

    "nystudio107/craft-recipe": "dev-develop-v4 as 4.0.5",

Then do a composer clear-cache && composer update

@khalwat
Copy link
Contributor

khalwat commented Feb 21, 2023

Updated the docs to descript how to do Multi-Component recipes:

https://nystudio107.com/docs/recipe/#multi-component-recipes

Released as:

Craft 3: Version 1.4.2 -> https://github.com/nystudio107/craft-recipe/releases/tag/1.4.2

Craft 3: Version 4.0.5 -> https://github.com/nystudio107/craft-recipe/releases/tag/4.0.5

@keyname
Copy link
Author

keyname commented Feb 22, 2023 via email

@bencroker
Copy link
Collaborator

bencroker commented Feb 22, 2023

@keyname can you please provide some more details? What happens when you click the “Fetch Nutritional Information” button? And what do you see in the response of the network request in the browser's console tools?

@bencroker
Copy link
Collaborator

Fixed and tested in #65.

@khalwat
Copy link
Contributor

khalwat commented Feb 22, 2023

@keyname if you could test this out please...

Craft CMS 3:

You can try it now by setting your semver in your composer.json to look like this:

    "nystudio107/craft-recipe": "dev-develop as 1.4.3",

Then do a composer clear-cache && composer update

…..

Craft CMS 4:

You can try it now by setting your semver in your composer.json to look like this:

    "nystudio107/craft-recipe": "dev-develop-v4 as 4.0.6",

Then do a composer clear-cache && composer update

@keyname
Copy link
Author

keyname commented Feb 22, 2023 via email

@khalwat
Copy link
Contributor

khalwat commented Feb 22, 2023

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

Successfully merging a pull request may close this issue.

3 participants