
Chris
Staff

Oct 15, 2009, 12:10 PM
Post #4 of 5
(1852 views)
Shortcut
|
|
Re: [yodare] How to Create a Global Dropdown List (list options)
[In reply to]
|
Can't Post
|
|
Hi yodare,
1. Don't really want to create 100 records and then cut/paste 100 times for each drop-down list item Crazy. Unless I can batch records from text file array or CSV?? There are many ways to speed up inserting 100 records. phpMyAdmin has an Insert feature which lets you enter up to 40 records on a single page; I believe it also has a CSV import feature. Another approach would be to use CMS Builder's Database Backup feature and manually edit the SQL file to add your own rows, then Restore it (copy the backup file in case something goes wrong!) Once you've got your records in your database, you won't need to copy and paste anything. You can set your List Field to "Get options from database (advanced)" and specify the section which has your options.
Is there any way to swap out last year's Color Names list with this year's Color Names list with a single copy/paste? You can use any of the techniques above to DELETE and INSERT multiple records at a time. We could also build you a tool to do this through our Consulting service.
2. Would like to create some kind of template for "global" values. (ex: "Available Colors" list options for product A, B, and C would be different from products D, E, and F) That's getting a little more complicated. Your Colour_List section could have a "category" (or "manufacturer") field and your Product section could have a "colour_list_category" (or "manufacturer") field. By using the "Get options from MySQL query (advanced)" feature, you can have the selection of one pulldown change the options available in another pulldown. I hope this helps give you some ideas. If you have any trouble setting things up, please let me know. Chris
|