3 of 4
3
Multi Drop-down List
Posted: 11 May 2007 08:24 PM   [ Ignore ]   [ # 37 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

you should be able to fix this by just placing the multi-drop-down-list file back on the server in the system/extensions folder.  or if you have access to PHP you can manually disable the extension by running the following query:

DELETE FROM exp_extensions WHERE class = 'multi_drop_down_list'

Of course editing MySQL directly is risky so make sure you back up your database first as a general caution.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 11 May 2007 08:31 PM   [ Ignore ]   [ # 38 ]  
Summer Student
Total Posts:  23
Joined  09-26-2006

That hasn’t worked for some reason.  I will see if I can find PhPmyAdmin on my host. (I don’t *really* know what I’m doing).

Profile
 
 
Posted: 11 May 2007 08:37 PM   [ Ignore ]   [ # 39 ]  
Summer Student
Total Posts:  23
Joined  09-26-2006

Awesome, I’m all fixed.  Thanks for your help.

Profile
 
 
Posted: 11 May 2007 08:38 PM   [ Ignore ]   [ # 40 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

great! glad it worked out.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 23 August 2007 09:26 AM   [ Ignore ]   [ # 41 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  240
Joined  09-30-2005

Works like a charm!! Thanks! smile

Profile
 
 
Posted: 04 September 2007 09:32 AM   [ Ignore ]   [ # 42 ]  
Lab Assistant
RankRank
Total Posts:  161
Joined  07-27-2007

I installed this extension successfully, created custom multi-select fields, but when I try to publish a weblog I can only choose one selection—just like the the original drop down list

1. Is there something else (configuration-wise) other than installing the extension that I need to do?
2. Is there any actual documentation for this extension other than the forum posts?

Profile
 
 
Posted: 04 September 2007 09:46 AM   [ Ignore ]   [ # 43 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

@django6—have you created a new multi-select field?  what shows up when you create the new field?  Is it a normal select list?

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 04 September 2007 10:38 AM   [ Ignore ]   [ # 44 ]  
Lab Assistant
RankRank
Total Posts:  161
Joined  07-27-2007

I did create two multi selected fields.  They show up as lists in the weblog publish page, which surprises me since I was expecting a drop-down.  What am I doing wrong?

Profile
 
 
Posted: 04 September 2007 10:57 AM   [ Ignore ]   [ # 45 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

They should be lists.  To select multiple items hold down control on windows or the apple key on a mac.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 04 September 2007 11:10 AM   [ Ignore ]   [ # 46 ]  
Lab Assistant
RankRank
Total Posts:  161
Joined  07-27-2007

Thanks that was pretty dumb on my part. I’m used to pc and was using a mac and trying to do it with the control key.

I have a couple other questions:
I appreciate all the work you do creating these extensions for free, but is there chance you could add some docs and package them with the zip file for each extension? It would be real nice to have installation instructions and some general useage examples in a readme file or something.

I want to use the multi-drop-down with the custom field extension.  How do I go about searching for weblogs by multi-drop down selections?  Can I do something like:

custom_field == “val1” &&  custom_field==“val2”  &&  custom_field==“val9”

Or can I parse the values in the multi-drop-down and then access the weblog using those values?

What’s the correct syntax for this?

Profile
 
 
Posted: 04 September 2007 01:44 PM   [ Ignore ]   [ # 47 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1183
Joined  01-05-2006

You can simply output the field, {field_name} to access it’s contents.  Also, use the separator=”” attribute to specify a delimiter other than the default.

It should work with the custom field extension, but if not please bring it up in the custom field thread.  Thanks!

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 04 September 2007 02:28 PM   [ Ignore ]   [ # 48 ]  
Lab Assistant
RankRank
Total Posts:  161
Joined  07-27-2007

How about the doc question?

Also, I don’t want to display the contents of the custom field, I want to restrict the search depending on its contents. Maybe you’re suggesting that I first get the contents and then restrict the search based on the contents?  Anyway, I’ll move that question to the correct thread if i can’t get it working.

Thanks

Profile
 
 
Posted: 04 November 2007 03:19 PM   [ Ignore ]   [ # 49 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  779
Joined  12-01-2002

Hi Mark- When using this extension with the “pre-populate field option, the extension seems to place the entry_id as the value in the record, instead of the text of the field. For example, when using just the regular select field, if I have the values, pre-populated from another field, of housing, financial, insurance. And the user selects ‘insurance’ the field value displays as ‘insurance’ in the field, so if doing a custom query, I can simple search for ‘insurance’.

In the multi-select field, the field value displays as the entry_id (13975), instead of the actual value (insurance). Is this the planned behaviour? Because it really causes problems with custom queries, as well as with something a simple as converting the field from a pull down list to a multi-select field. Since the records for the pull-down field always displays the text value of the field and the multi-select field displays a numerical value for the field.

For example, I have a solution, that passes values via the path.php file to a number of custom fields. The value is a text value (housing or insurance). This sends a custom query across a number of different fields, some of the multi-select. But I can’t use the populate field from another custom field in conjunction with the Multi-Drop Down List extension, since the value returned aren’t text values, and searching for ‘housing’ returns nothing because the value is stored as an entry_id.

Profile
 
 
Posted: 06 November 2007 05:59 AM   [ Ignore ]   [ # 50 ]  
Grad Student
Rank
Total Posts:  34
Joined  03-31-2006

I am having a problem with Multi Drop-down list with Multi Site Manager and EE 1.6. My post is at the following URL:

http://expressionengine.com/forums/viewthread/64284/

Profile
 
 
Posted: 06 November 2007 09:16 AM   [ Ignore ]   [ # 51 ]  
Grad Student
Avatar
Rank
Total Posts:  34
Joined  08-08-2007

Mark,

First, thanks for sharing the extension, it’s just what I needed.

Second, I have a bug fix for the separator=”” attribute. The regex you’re currently using won’t allow a separator containing a single quote (’). Changing the regex on line 578 to use a end-of-string anchor fixes the problem.

else if(preg_match("/separator\s*=\s*['\"](.*?)[\"']$/", $matches[1][$key], $seperator))

Thanks again!

-Sean

Profile
 
 
Posted: 04 December 2007 03:20 AM   [ Ignore ]   [ # 52 ]  
Lab Assistant
RankRank
Total Posts:  107
Joined  04-23-2007

Hi Mark, Thanks for this great extension!  It’s great!  I’m trying to implement a multi-drop-down list custom field on a SAEF.  Do you know the code I need to get this going?  For example, to show the standard drop down menu, I know that it’s:

{if pulldown}
<select id="{field_name}" name="{field_name}">
{options}<option value="{option_value}"{selected}>{option_name}</option>{/options}
</select>
{/if}

Profile
 
 
Posted: 05 December 2007 07:55 PM   [ Ignore ]   [ # 53 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  228
Joined  11-16-2004

allgood2 - I too am looking for a way to pull the actual value rather that the entry_id.

Mark, is there anyway to add that ability in the extension, i.e. kinda like you did with File where you were able to pull different pieces of data like the path, extension, file name, etc. perhaps custom_field_data or something like that.?

 Signature 

T. Payton
OneCreative | Albuquerque, NM

Profile
 
 
Posted: 27 January 2008 10:42 AM   [ Ignore ]   [ # 54 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  779
Joined  12-01-2002

Has any one gotten search in custom field working with multi drop-down list, radio buttons, or any other of Mark Hout’s custom field extensions??  The docs say

NOTE: Only custom fields of the type “Text Input”, “Textarea”, and “Drop-down Lists” are searched with this parameter.

  But since technical Hout’s extensions just modify the field type “drop-down” list, I was kind of hoping there’s someway to make this work.

So far I’m not having any luck, but I am wondering if that’s just me, since I’ve had problems using the function before (for some reason if I type it in (even with multiple proof readings) it doesn’t work, but if I copy and paste from the manual, then copy and past from the field definition screen, it does).  So I’m hoping maybe its just me, and others have it working. Please, please let me know.

Profile
 
 
   
3 of 4
3
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64547 Total Logged-in Users: 24
Total Topics: 81142 Total Anonymous Users: 17
Total Replies: 436541 Total Guests: 195
Total Posts: 517683    
Members ( View Memberlist )