Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Studio: Changing layout keeps rolling back old layout

  1. #1
    doubleone is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    27

    Default Studio: Changing layout keeps rolling back old layout

    Hi there,

    I am trying to change the layout of my contacts form.

    When I make the change, and click "Save and Deploy" the layout reverts to what it was before.

    I suspect that this is a file permissions issue and are not sure where to fix it, can someone point me in the right direction?

    Thanks
    Last edited by doubleone; 2008-04-09 at 01:33 PM.

  2. #2
    doubleone is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    27

    Default Re: Studio: Changing layout keeps rolling back old layout

    Ok I am thinking that a certain file does not have "666" permissions and hence any changes are not happening...I cannot pinpoint the file, can anyone help??

  3. #3
    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: Studio: Changing layout keeps rolling back old layout

    Hi, doubleone.

    First of all make sure you have write access to the layouts.
    After that, copy the modules/Contacts/DetailView.html (in case 4.5.1 or older) or the modules/Contacts/metadata/detailviewdefs.php (in case 5.0.0) to the custom/modules/Contacts and make sure the user related to your web server has write access to that.

    Try to modify the layout again.

    Cheers

    --
    André Lopes
    Lâmpada Global Services
    SugarCRM Silver Partner
    USA: +1 908 998-2278
    BR: +55 11 3237-3110
    www.lampadaglobal.com
    email: info@lampadaglobal.com

    Lampada Global Services delivers enterprise software and offshore programming services to customers around the world.

  4. #4
    doubleone is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    27

    Default Re: Studio: Changing layout keeps rolling back old layout

    Thank you very much for the help...I have done this but still it does not seem to do the trick.

    when you mention
    First of all make sure you have write access to the layouts.
    can you indicate exactly which file needs to have write access, can you confirm that this is 666 access?

    I need to check up on the above, it could be the problem.

    I really appreciate your assistance.

  5. #5
    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: Studio: Changing layout keeps rolling back old layout

    Hi, doubleone

    It is an option to ensure write access to the sugarcrm directory.

    But better than that is chown -R webuser.webuser sugar_directory.

    Where webuser is the user under which the apache web server is running.

    The 666 chmod has security issue (and it is the number of the beast!!!)

    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.

  6. #6
    doubleone is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    27

    Default Re: Studio: Changing layout keeps rolling back old layout

    Hi,

    Ok, I have checked my permissions and all is as it should be - my webhost helped me out.

    Now I am still having the same issues - it must have to do with something else.

    I think its best if I show you, using screenshots my exact problem -

    Firstly, I this is what I see on the Studio > Contacts > Layouts > EditView page is:

    http://www.simplyrecruit.net/SugarCRM_1207900778839.png


    And then I try bring in the "Champion?" field




    I then click save, and ito goes back to step to the original layout:



    what files are involved here, do you have any more ideas as to where the problem lies?

    I appreciate your help very much!

    Matt

  7. #7
    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: Studio: Changing layout keeps rolling back old layout

    Hi, doubleone.

    You are almost there.

    Clicking "Save" button you only save the layout into the temp layout: custom/working/modules/Contacts/metadata/editviewdefs.php

    But clicking into "Save and Deploy" you perform this action and copy the created layout into custom/modules/Contacts/metadata/editviewdefs.php, which is what you want.

    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.

  8. #8
    doubleone is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    27

    Default Re: Studio: Changing layout keeps rolling back old layout

    Hi,

    Yes - when I click "Save and Deploy" that is when the "Champion?" field is removed from the layout and the layout goes back to what it was before..I have been trying that...

    I have subsequently found out however that there is no "editviewdefs.php" file in the folder that you mentioned: custom/working/modules/Contacts/metadata/

    could this be the problem?

  9. #9
    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: Studio: Changing layout keeps rolling back old layout

    Perhaps.

    Try to customize another layout.
    If the error persist then check if the directory custom/working/modules/ModuleName/ has been created.
    If not check if the custom/working/modules has been created.
    If not it could be a write access issue.

    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.

  10. #10
    doubleone is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    27

    Default Re: Studio: Changing layout keeps rolling back old layout

    Hi,

    OK, I have taken a screenshot of what exists here, I do not see the directory: custom/working/modules/ModuleName/
    but I do see that custom/working/modules has been created.


Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Studio layout edit
    By jungler in forum Developer Help
    Replies: 0
    Last Post: 2008-02-01, 12:57 AM
  2. Replies: 3
    Last Post: 2007-01-18, 05:34 PM
  3. Studio changes layout but only for input
    By razter in forum Feature Requests
    Replies: 7
    Last Post: 2006-07-31, 01:56 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
  •