Results 1 to 3 of 3

Thread: Customizing task subject

  1. #1
    lmiller is offline Sugar Community Member
    Join Date
    Feb 2010
    Posts
    106

    Default Customizing task subject

    I'm trying to customize the task subject section to make it into a dropdown box. When I made my note subject into one, it added it, but only halfway for some reason. When I go to create a task, it has a section labeled Subject1, that acts as the old Subject field, and the old Subject field is my dropdown box. On the task list, whatever is in the Subject1 field is what shows up as a link to view further details on the task, but I don't want this, because people put whatever they feel like in this section, instead of using common sense and making the both fields that say subject match. Is this going to be easier to upload a custom PHP file that will make the subject list into a dropdown box, or will it be easier to make a logic hook that populates the subject1 field with whatever the subject field dropdown is showing?

    This is what I have tried so far.

    I made a file called, tasksubjectdropdown.php and this is what it says

    Code:
    <?php 
     
    $dictionary['Task']['fields']['name']['type'] = 'enum'; 
    $dictionary['Task']['fields']['name']['options'] = 'note_subject_list'; 
    
    ?>
    note_subject_list is the name of the dropdown box that I want to use. I uploaded the file to

    /public_html/custom/Extension/modules/Tasks/ext/vardefs

    Then I do a quick repair and rebuild, but for some reason, it stays the same?

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Customizing task subject

    I don´t know if we have a mis spelling here, but the right path is:

    custom/Extension/modules/Tasks/Ext/Vardefs
    To make sure it is working look into custom/modules/Tasks/Ext/Vardefs/vardefs.ext.php
    This file should contain the entries you just added.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    lmiller is offline Sugar Community Member
    Join Date
    Feb 2010
    Posts
    106

    Default Re: Customizing task subject

    The problem was that the person I had upload the files didn't put them in the proper case, he put in
    public_html/custom/Extension/modules/Tasks/ext/vardef

    the last 2 directories were supposed to be Ext/Vardef, like you said. Thank you for pointing this out, next time I will do the work myself instead of having someone else do it!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Task subject the dropping out list
    By SmilingBull in forum Help
    Replies: 1
    Last Post: 2010-04-07, 07:56 AM
  2. Replies: 0
    Last Post: 2009-04-18, 08:48 AM
  3. Customizing Task Layout - How?
    By telicm in forum Developer Help
    Replies: 2
    Last Post: 2007-01-07, 05:09 PM
  4. Replies: 0
    Last Post: 2006-03-26, 11:21 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
  •