Results 1 to 5 of 5

Thread: Customize Users Module Edit with a Dropdown

  1. #1
    jmongaras is offline Junior Member
    Join Date
    Mar 2011
    Posts
    4

    Default Customize Users Module Edit with a Dropdown

    I am customizing the EditView.tpl file for the Users module. I am trying to add a dropdown field. It is a custom dropdown that I added. Here is my en_us.lang.php file. It contains the new dropdown list.


    $GLOBALS['app_list_strings']['location_list']=array (
    'Blank' => '',
    'Chicago' => 'Chicago',
    'New York City' => 'New York City',
    'Los Angeles' => 'Los Angeles',
    );

    The lines I added for the new field in the EditView.tpl are the following:

    <td width="17%" scope="row"><slot>{$MOD.LBL_LOCATION}:</slot></td>
    <td width="33%" ><slot>{$LOCATION_LIST}</slot></td>

    The label is working correctly, but I only get blank space for the dropdown. Do I have the incorrect naming convention? From what I see above, I thought it would be $LOCATION_LIST.

    I appreciate the help.

  2. #2
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Customize Users Module Edit with a Dropdown

    Which sugar version are you using?
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  3. #3
    mak111 is offline Sugar Community Member
    Join Date
    Jul 2010
    Posts
    18

    Default Re: Customize Users Module Edit with a Dropdown

    You have to customize editview.php too. where you have to get custom drop down and pass the same to tpl file. TPL file will only recognize the variables which are declared to it.

  4. #4
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Customize Users Module Edit with a Dropdown

    Maybe this blog post from angel could be helpful for you:
    http://cheleguanaco.blogspot.com/201...elds.html#more
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  5. #5
    jmongaras is offline Junior Member
    Join Date
    Mar 2011
    Posts
    4

    Default Re: Customize Users Module Edit with a Dropdown

    Thank you for the help. Adding code to the EditView.php file did it. I now see it.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to customize Users module
    By Snook in forum Developer Help
    Replies: 21
    Last Post: 2011-10-22, 04:10 AM
  2. Customize users module
    By Fravdd81 in forum Developer Help
    Replies: 1
    Last Post: 2011-05-22, 10:19 PM
  3. Replies: 3
    Last Post: 2008-06-03, 02:31 PM
  4. Replies: 2
    Last Post: 2008-05-16, 12:20 PM
  5. Users Edit Module not allow entry for ID field
    By ghight in forum Developer Help
    Replies: 0
    Last Post: 2006-03-25, 02:15 AM

Tags for this Thread

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
  •