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

Drop down menus in a module CP?

Development and Programming

Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

I am creating a module CP that requires 3 drop down menus so the user can select various data.

How do I create a dropdown menu with the DSP class?

Thanks

       
Corvaire Wind's avatar
Corvaire Wind
60 posts
17 years ago
Corvaire Wind's avatar Corvaire Wind

did you get an answer to this Erin?

       
Corvaire Wind's avatar
Corvaire Wind
60 posts
17 years ago
Corvaire Wind's avatar Corvaire Wind

The wiki has a drop down for the categories list.. just fyi I would just emulate how they did it in that mods core.

       
Erin Dalzell's avatar
Erin Dalzell
790 posts
17 years ago
Erin Dalzell's avatar Erin Dalzell

Ya I got it solved:

$r .= $DSP->input_select_header('gallery');

        $results = $DB->query("SELECT gallery_id, gallery_full_name FROM exp_galleries");
        foreach($results->result as $row)
        {
            $r .= $DSP->input_select_option($row['gallery_id'], $row['gallery_full_name']);
        }

        $r .= $DSP->input_select_footer();
       

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.