Results 1 to 5 of 5

Thread: Custom dropdown in an module installation

  1. #1
    YohN is offline Member
    Join Date
    Jul 2007
    Posts
    7

    Default Custom dropdown in an module installation

    How (or where) must I specify new dropdown in my custom module installation to use in this module?

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Custom dropdown in an module installation

    YohN,

    You can add/remove items from a dropdown in Admin->Studio->Edit Drop Downs. You can create new drop downs and place them in a module in Admin->Studio->Edit a Module->...and so on.

  3. #3
    YohN is offline Member
    Join Date
    Jul 2007
    Posts
    7

    Default Re: Custom dropdown in an module installation

    Quote Originally Posted by eggsurplus
    YohN,

    You can add/remove items from a dropdown in Admin->Studio->Edit Drop Downs. You can create new drop downs and place them in a module in Admin->Studio->Edit a Module->...and so on.
    No, this way is not acceptable - I want to INSTALL new dropdown with my custom module and without any custom handy input.

  4. #4
    mapm's Avatar
    mapm is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Portugal
    Posts
    239

    Default Re: Custom dropdown in an module installation

    Create it in vardefs.php and to field_arrays.php then add it to your EditView.* and DetailView.*.
    You also have to create the options of the dropdown in custom/Extension/application/Ext/Language/en_us.<module_name>.php ( I think)

  5. #5
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Custom dropdown in an module installation

    Create a language file in your install (e.g. mymodule-en_us.lang.php or whatever lang you are using) and add the dom in there with app_list_strings:

    $app_list_strings['my_custom_dom']= array (
    '' => '',
    'entry1=> 'entry1',
    'entry2' => 'entry2',
    );

    and in your manifest add to the installdefs:


    'language'=> array(
    array('from'=> '<basepath>/language/application/mymodule-en_us.lang.php',
    'to_module'=> 'application',
    'language'=>'en_us'
    ),
    ),

    Now you can references my_custom_dom in your module.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Module Builder
    By Olavo in forum Downloads
    Replies: 418
    Last Post: 2009-02-26, 06:36 AM
  2. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  3. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 AM
  4. Replies: 7
    Last Post: 2006-06-06, 07:56 PM
  5. Contact Search Form - Custom Dropdown Field
    By aram in forum General Discussion
    Replies: 2
    Last Post: 2005-05-01, 03:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •