incorrect file name in custom.block.html #914
Description
there is a typo in https://training.plone.org/volto-customization/custom_block.html
We need to configure the project to make it aware of a new block by adding it to the object configuration that is located in "src/config.js". For that we need the 2 blocks components we created and a svg icon that will be displayed in the blocks chooser.
should be
We need to configure the project to make it aware of a new block by adding it to the object configuration that is located in "src/index.js". For that we need the 2 blocks components we created and a svg icon that will be displayed in the blocks chooser.
index.js, not config.js.
I finished the exercise with a new volto weather block 10min ago :-)
BTW, great work and many thanks to all the writers and trainers, this is a great guide and plone is fun!!
Activity
stevepiercy commentedon Jan 26, 2025
@adnus thanks for the report! Would you please submit a pull request with the fix?
For a typo fix, you don't need to sign the Plone Contributor Agreement, but instead include this statement in the description of your pull request.
Details: https://training.plone.org/contributing/
Fix typo in custom_block.md: change src/config/blocks.ts to src/index.js