My name is Tuan, a web developer for an IT company in Singapore.
I have just done a module called “ebayfield”. The module is a CCK field which provides us a Select list which is listing all term names of a vocabulary that we pointed the field to when creating it via content type / adding new field.
The special part of this CCK field is that, it allows us to add new item to the current list. The concept is just as same as Content Taxonomy Autocomplete module but the difference is that, it adds a “Add new item” option to the end of the list and if user selects it, it will show an input textfield on top of the Select list so that user could enter new item directly. In this manner, it is also different from an existing module called “cck_select_other” where the module shows the textfield underneath the Select list which may cause the form broken unexpectedly.
Here are its main features and functionalities:
1. In CCK field settings (when adding a new field type “eBayField” via content type page), it allows user to select an existing vocabulary and uses the vocabulary’s terms for its listing later.
2. When showing in node form, it provides a Select list which contains all the term names from the vocabulary above.
3. It adds a “Add new item” option to the end of the list and if the option is selected, it creates and places a text field on top of the Select list. User then could enter the new item into it.
4. If there is a new item entered and the form is submitted, the module will automatically creates a new term with name is the item name and saves it to the vocabulary.
So why is it named as “ebayfield”? It is because the way it works is exactly as same as the Item specifics field on ebay.com where it lists some items for sellers to select and allows them to add new item if doesn’t exist. So I believe this CCK field is absolutely useful for the likes ebay.com or other listing / e-commercial websites.
Many thanks and best regards,
Tuan,
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ebayfield.zip | 4.41 KB | tm01xx |
Comments
Comment #1
tm01xx commentedI'm attaching my module in zip format here:
Comment #2
avpadernoHello, and thank you for applying for a CVS account.
As per requirements, the motivation should include a comparison with the existing solutions.
Comment #3
tm01xx commentedHi,
Thanks for replying. I did include comparisons to 2 existing modules already but maybe not very details so here they are:
1. Content taxonomy autocomplete module:
- This module allows to point the CCK field to a vocabulary and auto search the terms when keying. The limitation of it is that, user doesn't know all the terms being listed until they have to key in and terms are displayed by the matching keyword only.
- My module, ebayfield, has solved this limitation by list all the terms of the vocabulary into a Select list and let user choose which term they want.
2. cck_select_other module
- This module allows user to choose item from a Select list, but it doesn't make use of vocabulary. It is just a simple Select widget with pre-defined Allowed list plus the ability of adding "Other" item by user.
- My module, ebayfield, has similar feature for adding custom item from user but it uses vocabulary and instead of creating a table to hold the custom items, it just adds the item into the vocabulary as a term so it is easier for management later using Drupal taxonomy.
- One more point that why we should use taxonomy is that, for e-commerce, listing, or classifieds websites where many values of a field are unknown or undefinable by the website owners so what they should do is to create a vocabulary and then let users to update the terms to it using ebayfield. For example, I create an ebayfield labeled TV Channel, this field is pointed to a vocabulary named Tivi Channel as well. I don't know how many channels are there so I just leave the vocabulary empty. Then the first user comes in, he selects "Add new item" and enters "CNN" then saves the node. The second user then comes, in another node, he will see "CNN" in the list and if he wants, he could choose the channel. Otherwise, he could add his own channel, "BBC" let's say. So this is absolutely helpful and it is how ebay.com is working currently.
- In addition, I believe my module has better UI in which if user selects "Add new item" from the Select list, it will create a text input on top of the Select list for user to key in so it saves space and the looks and feels is great.
Many thanks for your reply, please let me know if anything I should do in order for the process goes through.
Comment #4
avpadernoThank you for your reply.
Comment #5
tm01xx commentedHello, I didn't know it takes too long time for this review state. May i know how is the process now please?
Thanks.
Comment #6
zzolo commentedHi. Please read all the following and the links provided as this is very important information about your CVS Application:
Drupal.org has moved from CVS to Git! This is a very significant change for the Drupal community and for your application. Please read the following documentation on how this affects and benefits you and the application process:
Migrating from CVS Applications to (Git) Full Project Applications
Comment #7
avpadernoAs per previous comment, I am setting this issue as Won't fix.
Since now users can create full projects, applications have now a different purpose and they are handled on a different issue queue. See Apply for permission to opt into security advisory coverage for more information.
Comment #8
avpaderno