Approach question

Joined: 11/28/2008

I have a system which generates one file for each state in the US.

The file name occasionally changes for each state - e.g, it may be Utah.aaa one month, and utahfile.bbb the next month for the state of Utah.

There is one file per state.

I have to maintain that list in Drupal. I know I could create a CCK content type, but that would litter the system with 50 or so nodes, each containing one piece of information. I'd rather have a list of states in alphabetical order, with the associated filename in a text box next to it.

What would be the best approach to write this in Drupal? I can do it in PHP, but I'd prefer to learn the correct Drupal way...

Regards,

Pete.

Peter Connolly
Technical Director
KP Direction LLC
http://www.kpdirection.com
http://www.kids-faith.com

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
custom code

You could write a module that has it's own light weight objects/records in a custom table to maintain the list. That would be lightweight.

Then you could use something like the Table Wizard (http://drupal.org/project/tw) to expose it to views.

Man, I wish I had a reason to write a lightweight record module for drupal (think lightweight versions of nodes).

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com