I'm trying to build my first Ubercart site. Let's say that the store sells music. I've added a CCK field to the Product content type called Artist.

When I'm adding products, is there anyway to automatically populate the Artist field with previously entered values? This way, previously entered values can be re-used for new products. This way, I don't end up with several different versions (spelling etc) of one artists, and then I can use Filters to successfully find specific artists.

Any thoughts?

Comments

i25’s picture

Any thoughts on this one guys? How can I maintain a select list of values that users enter over time? Thanks.

i25’s picture

Anything guys? Is this even possible?

hershel’s picture

I don't follow what the problem is. If you have a CCK field with an option list, it will be the same for all nodes--that's how CCK works. Please explain in more detail what the issue.

i25’s picture

My question is: is there a way for the selection list to be automatically populated with values that are typed into the field?

So, for instance, let's say that I'm creating a new node. In the Artist field (text field), I type in John Doe. The next time I create another node, I want John Doe to be available as a selection.

Obviously a text field can't change to a select list field, but is there another way of achieving this kind of operation (maybe having entries in the text field populate a separate field that is a select list)?

hershel’s picture

I think this is what you want http://drupal.org/project/textfield_autocomplete but it unfortunately has no 6.x version.

i25’s picture

That's exactly what I need! Does anyone have any info on plans for a 6.x version, or any other modules that do the same thing?

hershel’s picture

see http://drupal.org/node/281885 for answers to both your questions.

i25’s picture

***UPDATE: Since this question below is different from the original question, I'm creating a new post with the new question.

Thanks for the info.

A related question concerning how I should approach this:

What's the best method to use to make entries as standardized as possible? I have no choice but to make the "Artist" field a text field. So is there any way to standardize the entered values, so that I don't end up with, for instance, M. Carey as well as Mariah Carey as well as mariah carey?

Is my only option trying to train the users to make sure they enter it the same time each time a new node is created? This is scary for obvious reasons...

ErikU’s picture

Why not add a taxonomy called Artists, attach it to the Content Type that you want, check "Tags". That way any entry will be added to the taxonomy terms and will allow selection later on. It won't be a drop-down list, all you'd have to to is type the first letter and all options starting with that letter will show up.