Technical support This forum is closed.
Version 1.x > Technical support > Categorizing Custom Documents View modes: 
User avatar
Member
Member
czapata - 3/9/2006 7:53:15 PM
   
Categorizing Custom Documents
Hi.

I've created a series fo custom documnets that I need to categorize. Is there anyway to allow multiple value selection from a dropdown list field type?

For example: I have a custom document named CalendarEvent. I need to determine if it is a Special Event and/or Education Event, or a recurring event, etc.

What's the best way to do this?



User avatar
Member
Member
argodev - 3/10/2006 12:06:01 AM
   
Re: Categorizing Custom Documents
The easiest way to accomplish this would be to create a template attribute that utlizes a drop-down list control and pulls the available options either from an existing database table (i.e. a table of CalendarEventTypes) or directly listed in a <value>;<display> format. I've recently implemetented this a few places on one of the sites I've been working on and it's been easy to use.

hope that helps...

User avatar
Guest
admin - 3/10/2006 7:17:52 PM
   
Re: Categorizing Custom Documents
Rob,

Thank you very much for answering the message.

I'd like to add only that there's also the "Multiple choice" field type that can be used for these purposes. It stores all selected values in one text field, separated with a semicolon.

You can then filter the documents using a WHERE expression like this:
" docCategory LIKE '%recurring event%' ".

Best Regards,

User avatar
Member
Member
czapata - 3/10/2006 7:41:11 PM
   
Re: Categorizing Custom Documents
The "Multiple Choice" field type is waht I was looking for. It allows the user to select any combination of choices and I can then filter easily by them...

Thanks!