Gossamer Forum
Home : Products : Links 2.0 : Customization :

Multiple select options

Quote Reply
Multiple select options
I'm hoping to get some help on this. I'd like to setup a multiple select field for each link that will only be used for the admin when adding a link (I don't need it for add.cgi). I know how to set up a pre-determined select field, but the problem is it may be different for every link. So, what I'm thinking is, in the admin section there will be a text box. If I need to enter multiple options for this link then I will enter them in the text box and seperate it with a character. EX: option1,option2,option3. Then I will need to display these options on the detail page as a select (drop down) box.

I've done some searching on the forum, but haven't had any luck finding what I need. Any help or suggestions you could provide would be great.
Quote Reply
Re: [matto] Multiple select options In reply to
you set them up in the links.def file. Just look at how they do the Yes/No

and leave them out of the add and modify html files


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Quote Reply
Re: [esm] Multiple select options In reply to
Hi Gene. Thanks for the reply. I've been digging around the forum a little more to see if it's been addressed in the past and I did find a post which explains what I'm trying to do.

http://gossamer-threads.com/..._flat&post=96883

Unfortunately, it looks like the only option is to setup a field and hand code each option/variable, which might get kind of ugly.

The problem is basically like Dogtags was having, that each link does NOT have a pre-determined value, so it really wouldn't be possible to enter these values within the links.def file - because there could be thousands. Ideally I would prefer to just enter the values in a text box, and then the values would be built as a select box upon building, but I don't know how difficult this would be to do. I might just have to settle with hand coding unless anyone else has a suggestion. Thanks.
Quote Reply
Re: [matto] Multiple select options In reply to
Adapt Loopy's AltCategories Mod. That MOD will do what you want.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] Multiple select options In reply to
Thanks, I'm going to take a look at it right now, but if you have some time, do you think you can elaborate on how to use it for values that are not already entered? I actually have that mod installed, but the problem I see with this is that the values may/will be different for each link. I won't know what all these variables are ahead of time, so I need to enter them into a text box. I believe Loopys mod utilizes the categories, so I will still have to enter pre-determined values...right? I'm just not quite sure how this will work for what I need.

Basically, I'm just trying to build a select field based on values entered into a text field. These values will most likely be seperated by comma or a ^. So, when I build the detail page, a drop down box will be built based on the values in that field. Hopefully, I'm making sense of all this. I know DogTags explained it well on that post, but it looks like he/she worked it out by entering html into the box. So for example, if I'm entering a link, I'm going to just have a text box that I can enter values into and the values are seperated by a ^

Link 1 Value: red^blue^green

Link 2 Value: black^orange^gold

Link 3 Value: purple^white^yellow

If I was just using colors, then it would be easy enough. Unfortunately, each field will have a unique value and/or values and I don't know what all those values are ahead of time.

Any additional input would be helpful, thanks.