Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
When you add a State as a field to your view, you can now choose the following 'formatters':
- state name;
- state id;
- count number of nodes with this state;
Comments
Comment #1
johnvThere is a count if you check the states list of the workflow on the config pages.
But it is not in Views.
Comment #2
johnvIn #2065799: Count Nodes by WorkflowState a new function WorkflowState->count() is added.
This can be used to open up in Views. Patches are welcome.
Comment #3
johnvChanging to Feature request, since it is not possible ATM.
Comment #4
johnvThis is committed in 7.x-2.x here.
When you add a State as a field to your view, you can now choose the following 'formatters':
- state name;
- state id;
- count number of nodes with this state;