I am trying to create a Content type that allows me (admin) to easily update the data and which can be used as a Field in a View.

The node should look something like this

Name Points
John Doe 80
Jane Doe 50

It will be 50 lines of names.

Each month the admin will edit the point data with new numbers.

Is this something I can create through CCK or do I need a module? And then how do I do it? Thanks.

Comments

bjornarneson’s picture

You could do this with a content type with just two CCK fields:

- Name
- Points

Then make reference to these fields in a view as you have described. No need for a custom module.

allnet000’s picture

Since there will be about 50 names and points will need to be updated on a weekly basis, I have no interest in updating 50 nodes each week. Is there a way to have all names listed on one node and have their points listed next to them?

michlis’s picture

It's very easy to display all names and corresponding points on one page using Views, but this doesn't solve your problem of editing them on a single page. I guess, you would need to look for some AJAX solution or use Node Import (http://drupal.org/project/node_import) if you are ok with editing data locally first e.g. in Excel or just Notepad ;)

steeph’s picture

http://drupal.org/project/editablefields and http://drupal.org/project/editview are two modules to edit the fields on one page. I haven't used Editview yet, but editablefields works in most browsers. I think there are some more modules that could to that.

allnet000’s picture

Thank you Steeph and Michlis I will try both of your recommendations and see what works best. I will share my results when I am done.