We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Multi Drop-down List

Development and Programming

mhulse's avatar
mhulse
329 posts
16 years ago
mhulse's avatar mhulse

@slorenz

it does NOT like having a comma in there! It tries to interpret this as two entries.

Have you tried HTML entity?

, = ,

Read the first technical note on this page to give you an idea of other situations one would want to use HTML entities. Could be a similar fix in your situation?

Hth’s, M

       
slorenz's avatar
slorenz
38 posts
16 years ago
slorenz's avatar slorenz

Ah! The question, then, is where do I place the

, =

? The issue is with the Publish Page, so I’d have to change Mark’s PHP extension file. What line in that code? I have no idea! Ha. Would this be in the “seperator” section?

       
mhulse's avatar
mhulse
329 posts
16 years ago
mhulse's avatar mhulse

Hi,

Can you put the , in the “Smith, J.” input?

For example:

“Smith, J.”

… Will output as this via HTML: “Smith, J.”

Alternatively, you could just change the separator via the extension’s options. Instead of using a comma to separate the items, use a pipe “|” character?

You could even use a little PHP to turn the pipes back to commas, if that is your goal.

Or, use PHP to convert the commas, in your list of names, into , before using this plugin:

<?php
function fix_comma($str) { return str_replace(",", "&#44;", $str); }
$name = fix_comma("Smith, J.");
echo $name; // Should output "Smith&#44; J."
?>

Hth’s! 😊

Cheers, Micky

       
October11's avatar
October11
183 posts
16 years ago
October11's avatar October11

Thanks for this great extension 😊

Having a slight issue: I’ve uploaded the extension; once Enabled EE returns an error:

Error Unable to load the following language file: /lang.multi_drop_down_list.php

Now, I cannot access my CP or anything on the ‘system’. Can’t even Disable the Extension.

Any thoughts on how to resolve this?

Cheers !!

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Did you make sure to upload the :

lang.multi_drop_down_list.php

to your :

system->admin->language->english

folder?

Best wishes,

Mark

       
October11's avatar
October11
183 posts
16 years ago
October11's avatar October11

Well, I did upload the language file, but on the wrong folder 😊

Works well now. Thanks Mark!

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

No problem at all.

Glad it’s all working again for you.

Hope everything goes well for you.

Best wishes,

Mark

       
maish's avatar
maish
5 posts
16 years ago
maish's avatar maish

Where’s the documentation for this extension? I’m trying to use the multi-select and have it display as a unordered list. How do I do this? I managed to install the extension but do not know how to use it in the template.

       
leadsuccess's avatar
leadsuccess
408 posts
16 years ago
leadsuccess's avatar leadsuccess

You call this an extension !!!!!

I call this one sweet extension, thanks!

Ok now I was wondering is there anyway to have the label be different then the value, please, like big_hat###Big Hats

       
Daniel H.'s avatar
Daniel H.
22 posts
16 years ago
Daniel H.'s avatar Daniel H.

Anyone know what the field type is for multiselect? I’m making a user blog submission template ( http://expressionengine.com/docs/modules/weblog/entry_form.html ), and of course it’s got areas for things like pulldown and such. I’ve tried multiselect, but it’s not happening. Works fine from the control panel’s publish area. Anyway know?

Thanks!

-Daniel

       
allgood2's avatar
allgood2
427 posts
16 years ago
allgood2's avatar allgood2

This could have changed, but the multiselect option was an extension, not native to Expression Engine. Which means you’ll need to custom code the form for it. It’s pretty easy to do; just use the ee form code to create the form first. Once the form renders with all the field data you need, do a view source code. Copy what you need and place that on the template that was priorly using the EE entry form. Then modify using basic html.

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

Just installed this and very happy with it. Hope it gets ported to 2.0 when that is released.

       
David Dexter's avatar
David Dexter
88 posts
16 years ago
David Dexter's avatar David Dexter

Great extension….

Has anyone got this working with a SAEF?

       
leadsuccess's avatar
leadsuccess
408 posts
16 years ago
leadsuccess's avatar leadsuccess

I am getting about 115 SQL queries when not even calling on this extension, is there any reason this might be happening. Here is the SQL.

SELECT f.field_id, f.field_name, f.field_pre_populate, f.field_pre_blog_id, f.field_pre_field_id FROM exp_weblog_fields AS f, exp_weblogs AS w WHERE w.weblog_id=13 AND f.group_id=w.field_group AND f.field_type='multiselect'

UPDATE: I got this issue resolved and was not related.

       
creativearc's avatar
creativearc
49 posts
about 16 years ago
creativearc's avatar creativearc

There may be a problem with this extension for the latest builds of EE. I’m getting the following error:

Warning: Typography::require_once() [typography.require-once]: Unable to access ./admin/plugins/pi..php in /var/www/vhosts/projects.somewebsite.org/httpdocs/admin/core/core.typography.php on line 475 Warning: Typography::require_once(./admin/plugins/pi..php) [typography.require-once]: failed to open stream: No such file or directory in /var/www/vhosts/projects.somewebsite.org/httpdocs/admin/core/core.typography.php on line 475 Fatal error: Typography::require_once() [function.require]: Failed opening required ‘./admin/plugins/pi..php’ (include_path=’.:’) in /var/www/vhosts/projects.somewebsite.org/httpdocs/admin/core/core.typography.php on line 475

It isn’t able to find the proper plugin, but I think it’s because your multi dropdown fields are not adding “none” or something other than “NULL” to the field_ft_X column for the field in exp_weblog_data. Or perhaps it should be putting “multiselect” in there?

I’m going to try to week through the extension and see if I can confirm this issue. Anyone else experiencing this?

       
First 3 4 5 6

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.