Measure node completion in Drupal, part 2

Peter Vanhee
8 Apr 2010
3 Comments
Peter Vanhee
8 Apr 2010
3 Comments
Peter Vanhee, 8 Apr 2010 - 3 Comments

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.

Administering a list view and putting Content Complete fields

Field options: different displays for the Completeness field

A list view of Album nodes ordered by completion

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.

A list view of Album nodes ordered by completion

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.

Comments

Comments

artscoop
23 May 2010

That is perfect for any purpose. This worked like a charm, I now have my block with completion among three nodes of different types. I'm going to look a bit further into your site :)

That is perfect for any purpose. This worked like a charm, I now have my block with completion among three nodes of different types. I'm going to look a bit further into your site :)

artscoop, 23 May 2010

That is perfect for any purpose. This worked like a charm, I now have my block with completion among three nodes of different types. I'm going to look a bit further into your site :)

artscoop, 23 May 2010
Jayendra kumar
11 Oct 2011

HI,

This is really a good article.

Thanks to share it.

HI,

This is really a good article.

Thanks to share it.

Jayendra kumar, 11 Oct 2011

HI,

This is really a good article.

Thanks to share it.

Jayendra kumar, 11 Oct 2011
Andrea Pescetti
23 Nov 2011

Comments are closed. You can contact Peter through his drupal.org contact form. To contact the current Nuvole team, use the contact form on this site.

Comments are closed. You can contact Peter through his drupal.org contact form. To contact the current Nuvole team, use the contact form on this site.

Andrea Pescetti, 23 Nov 2011

Comments are closed. You can contact Peter through his drupal.org contact form. To contact the current Nuvole team, use the contact form on this site.

Andrea Pescetti, 23 Nov 2011

Get your project started today!

Contact us