Measure node completion in Drupal, part 2
Different Views on completion data
This is the second part of the series on Content Complete. If you have missed the introduction of the Content Complete module, please read the first part in this series.
In this post, I'll guide you to setting up views to show the completion of Drupal nodes using Views. If you don't know how to work with Views, check out the documentation that is included within the module.
A list view on node completion
Imagine we have 10 artist nodes filled in by different users on the website and we want to have a simple list of those nodes together with their completion status.
Start by adding a new View of type 'Node' in your website. For a basic administration view, we add the post date and the title of the node to the 'Fields' and add a filter for nodes of content type 'Album'. To show the completion, add the 'Content Complete: Completeness' field from the 'Content Complete' group. You can display the field as a Numeric Value or Bar and select the option to show a field that links to the next field to be completed. The module also provides a raw view of the data with 'Content Complete: Completeness Data' which will be discussed in the next paragraph. We select the Table style and make the completeness field sortable. Check out the result of this simple view in the second figure.
Total completion of a list of nodes
Another way to output data is to show the total completion on a list of selected nodes, e.g., on all the 'Album' nodes. For this we select the Views style 'Content Complete' and select the 'Content Completeness Data' as a field. The Style will process all the data it receives from the nodes and compute the total completeness and the next field to be completed. This is very useful if you want to show only one completion bar for all your content, as shown in the figure below.
What's next
In the third and last part of this series, I'll show you how to set up a user flow to drive users to complete their nodes by sending out email reminders.
Tags: Drupal PlanetImage: