Results 1 to 6 of 6

Thread: Images Field????? Help

  1. #1
    ztolley is offline Sugar Community Member
    Join Date
    Jan 2008
    Posts
    10

    Default Images Field????? Help

    I need to add a field to a form to allow people to upload photos associated with that record. Anyone know a module that can do this for me?

  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: Images Field????? Help

    Hi,

    You can look at the modules/Notes/metadata/editviewdefs.php
    The field called 'filename' for sure implements what you need to do.

    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
    ztolley is offline Sugar Community Member
    Join Date
    Jan 2008
    Posts
    10

    Default Re: Images Field????? Help

    Ok I'll try looking at that.

    If i want to have more than one photo, then it would be cool to have something similar to notes but without having to put in all the stuff about it being related to a contact or a meeting etc.

    Maybe I should create a module that is a cut down version of notes and then figure out how to relate that to my main module.

  4. #4
    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: Images Field????? Help

    Hi, ztolley

    For sure! It is a great idea.
    Create a new module derived from Basic Template, create just a new field, which will be related to a file.
    Create a relationship one-to-many between this one and you module.
    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.

  5. #5
    ztolley is offline Sugar Community Member
    Join Date
    Jan 2008
    Posts
    10

    Default Re: Images Field????? Help

    Thats the big one....

    How do I create the one to many relationship between the two? I tried this before following an article on here and best I managed to get was to get the panel working showing my children in my parent edit screen bt when I clicked crate i got a blank form.

  6. #6
    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: Images Field????? Help

    Hi, ztolley

    Take a look at this article into sugarwiki.

    http://www.sugarcrm.com/wiki/index.p...s_in_Sugar_5.0

    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. custom field to sugar field
    By tanhaa in forum Developer Help
    Replies: 2
    Last Post: 2011-05-04, 03:52 PM
  2. Replies: 4
    Last Post: 2007-12-10, 04:49 PM
  3. Custom Field add not visible is Edit Layout
    By tylerpoint in forum Help
    Replies: 0
    Last Post: 2007-07-09, 05:56 AM
  4. Custom Field problems
    By gunni in forum Help
    Replies: 0
    Last Post: 2007-07-05, 09:43 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
  •