Skip to content

Conversation

@markconroy
Copy link
Member

@markconroy markconroy commented Apr 3, 2025

Closes #239

What does this change?

Adds a view to list all the paragraphs on the website, with a link to the node that the paragraph is on.

How to test

Go to admin/content/paragraphs/usage and have some fun.


Thanks to Royal Borough of Greenwich for time to work on this feature.

Copy link
Member

@stephen-cox stephen-cox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, I can't install this. When I try to do a site install that includes this view it fails with:

Configuration objects provided by localgov_paragraphs have unmet dependencies: view.view.localgov_paragraphs_usage (view)

Tests are also failing with a similar error.

Would is also be useful to add to existing sites? If so, it needs an update hook to install the new view.

@markconroy
Copy link
Member Author

@stephen-cox I think this is working now. The name of the views file had a typo (view.view... instead of views.view...). That's fixed now.

I also added

  • an update hook to enable the view if it's not already enabled, and
  • two local tasks to appear when you click on 'Page Components' in the admin/content list to give us 'Overview' (the current default 'Page Components' list) and 'Usage' (the list of where each paragraph is used).

Thanks to Big Blue Door for sponsoring my time to work on this.

@markconroy markconroy dismissed stephen-cox’s stale review October 25, 2025 15:15

Changes implemented, re-review requested.

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 this pull request may close these issues.

Create a view to list paragraphs on nodes

3 participants