Results 1 to 3 of 3

Thread: Layout Save & Deploy blows away customCode lines

  1. #1
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Layout Save & Deploy blows away customCode lines

    Per http://www.sugarcrm.com/forums/showthread.php?t=32003 and http://www.sugarcrm.com/forums/showt...ght=html+links

    you can add external links by editing custom/modules/Accounts/metadata/detailviewdefs.php

    I tried this and it works great.

    But when I use Admin panel to edit Accounts Layouts and click Save & Deploy, the original basic definition without the customCode line is written back to this file blowing away the link.

    Is there a more standard way to do this where it will be retained?

    Should the files under metadata never be edited?

    Is this a bug?

    Thanks

    Phil

  2. #2
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: Layout Save & Deploy blows away customCode lines

    I think that you need to make adjustments in the custom/Extension/modules/.... directory.

    Dig around in the Wiki (developers area) for more info. You should be able to add to the detailview there to extend the custom/modules/.../detailview.php.

    Specifically, look at the documentation for the one-to-many relate there is a section that extends the editview to make the custom field connect.

    Hope this helps, Good Luck,
    Paris

  3. #3
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Re: Layout Save & Deploy blows away customCode lines

    Thanks for the pointers.

    I couldn't find anything definitive in the Wiki, although I have to read it more carefully, but your tip on custom/extension/modules/... vs custom/modules/... prompted more research.

    The upshot appears to be that Save & Deploy propagates the customCode line from custom/working/modules to custom/modules where Sugar reads it to define the link. So if you edit custom/modules/... without editing custom/working/modules/... then your changes will be lost on Save & Deploy.

    So you have to edit the files in the custom/working/modules/... path, then Save & Deploy for that Layout and it will work.

    See http://www.sugarcrm.com/forums/showt...d=1#post106820 for specifically what I did and how it behaved.

    Phil

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2008-03-04, 03:36 PM
  2. Replies: 1
    Last Post: 2007-01-30, 11:34 AM
  3. 'Save Layout' errors
    By mmgareth in forum Help
    Replies: 1
    Last Post: 2006-07-06, 10:09 AM
  4. Can't 'Save Layout' in 3.0b
    By chrisf in forum General Discussion
    Replies: 0
    Last Post: 2005-05-16, 05:57 PM

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
  •