I recently needed to edit the custom field props for a block built in React in order to refactor the component's code. This meant that all pages and templates using that component would need to be updated in order for the new version of the component to work properly.
However, there isn't an easy way to find which pages contained instances of the block in question. I needed to look through each page to find the ones that used the block, which was particularly difficult if the block had been renamed on the page.
It would be nice to able to filter pages and templates based on which blocks they contain and to be able to quickly access the pages in order to swap things out. In an ideal world, the blocks would be editable from the same list, so I wouldn't have to load up each page in the editor in order to change the component.
Categories | Editor, Developer Tools |
I need it... | Month |
Hi Keegan, thanks for this feedback. There is not a way to do this in the PageBuilder UI, but there is a way to get a list of which pages a given block is included on in your local development workflow. See this documentation about a script that you can run locally: https://dev.arcxp.com/pagebuilder-engine/developer-docs/how-to-check-featurecontent-source-usage-using-pb-data-analysis-scripts/#find-pages-using-a-particular-feature
Let us know if that helps or if you have additional questions.