ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

multiple select in publish form

May 12, 2011 5:13pm

Subscribe [3]
  • #1 / May 12, 2011 5:13pm

    dencreative

    20 posts

    Hi, is there a way to change the number of rows shown in the publish form for the multiple select dropdowns?

    I can only see 4 rows, and I have about 100 options in there - it’d be REALLY handy if I could see more like 20 at a time…!

    Cheers

  • #2 / May 13, 2011 6:52am

    John Henry Donovan

    12339 posts

    dencreative,

    This would make a good feature request. To have the option to set the default number of rows visible in the custom field settings

    A quick way to do this without touching the core would to be note the id of the field after viewing the source of your publish page and then add a targeted style in your cp theme CSS to change the height

    Would that work for you?

  • #3 / May 13, 2011 10:51am

    dencreative

    20 posts

    Yeah I tried doing that but because the id’s for the select boxes start with a number I can’t get the CSS to work, and if I apply it to ‘select’ then everything with that class goes huge!

    sorry - ignore that, I’ve just used the parent div and everything is fine, obviously! thanks for your help…!

  • #4 / May 13, 2011 10:52am

    dencreative

    20 posts

    sorry - ignore that, I’ve just used the parent div and everything is fine, obviously! thanks for your help…!

  • #5 / May 13, 2011 10:54am

    dencreative

    20 posts

    One final question -

    In those select boxes, is there a way to sort the order of the contents? Similarly, is there a way of sorting them when I use them within the entries tag as well?

  • #6 / May 15, 2011 1:05pm

    Greg Salt

    3988 posts

    Hi dencreative,

    The dropdowns reproduce the list exactly as entered in the field setup. You could use some JS to affect the sorting though. You can also completely override a specific part of the theme by Customizing the Control Panel Theme if you want to make some more radical changes.

    Cheers

    Greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases