Results 1 to 5 of 5

Thread: EditView Layout Help!!

  1. #1
    bguss is offline Member
    Join Date
    Sep 2006
    Posts
    9

    Smile EditView Layout Help!!

    Hi I am rather new to Sugar and PHP for that matter.

    I am trying to change the layout of the lead edit page editview. I am trying to use the studio and with that I am unable to add a row with 2 columns under the descriptions heading. I read a thread that said to edit the editview.html and I added the 2 columns and it displays correctly when I go into sugar. The issue I am having is when I go back into the studio, I do not see my changes.

    I just want to know if there is a way to load those changes back into the studio or do I have to just use the back end.

    Thanks,
    Brian

  2. #2
    JustinK101 is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    78

    Default Re: EditView Layout Help!!

    Your not the only one, studio is a piece. Just keep playing and crossing your fingers.

  3. #3
    chrisky is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Trondheim, Norway
    Posts
    293

    Default Re: EditView Layout Help!!

    Brian...I assume you want to do layout customization like below?
    Attached Images Attached Images  

  4. #4
    chrisky is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Trondheim, Norway
    Posts
    293

    Default Re: EditView Layout Help!!

    Brien,

    Until you get familiar with the numerous multiple copies of Detail & EditView.html..

    Let me tell you how I originally figured out exactly which file and located where, was responsible for what.
    Immediately after saving and/or publishing from Studio, I then recursively searched the crm installation for files modified within the past 2 minutes, and my file searching tricks are a vital element of some of the things I do.. My point is that you might want to take a look at what you can do in regards to file searching, and need I give a hint being the word 'content'.

    In directly awnsering your question, you want to modify/edit the file custom/working/modules/modulename/EditView.html

    Be sure to make a backup copy of the [original] file BEFORE you modify it.
    Also be sure to use just a regular text editor, NOT any type of WYSIWYG or HTML editor, etc. as most of these will reformat the code and/or do other funky things which will potentionally just cause you problems.

    upon publishing a file from Studio, such file is placed into modules/modulename/EditView.html

    There is the occasional situation where you might need or want to modify the post-studio EditView.html file in the modules/ModuleName directory, but I strongly caution against it and that you make every effort to keep your mods inside Studio's copy of the view layout thus you maintain the benefits of studio use, compatability, and versioning history.

    Also beware of that annoying and nefarious studio bug.. So when (if) field names and lbl names go belly-up, I'll list each and every spot in which relates to such (custom field wise)

    First, the sql table named fields_meta_data, but not once have I had to edit/modify/revise/correct any problems with any data in this table. My point is that you should not need to touch anything here, but do look at it and get familiar with it!

    studio also caches a copy located in cache/studio/custom/working/modules/ModuleName/EditView.html
    I have experienced once or twice where studio was actually working with this cached file opposed to the working copy located in custom/working/modules/modulename/EditView.html
    of which is the file that YOU WANT TO EDIT.

    If you're unsure, how you can test it is by editing the EditView.html file and somewhere at the top, just prior to the table, throw in a few words, such as "You're grounded Sug<br>"
    then save the file and go back to your browser and reload the STudio page in which you are editing that view. The easiest way to do this is actuallty click on the appropriate studio link for the view you want to edit, you know the linkds "Detail View | Edit View | List View" etc.

    If you see your text then you're good to go and editing the right file.

    Also get familiar with cache/dynamic_fields/ModuleName/fields.php
    get REAL FAMILIAR with that file

    and also helpful is knowing that custom/modules/ModuleName/language/en_us.lang.php is the file that actually stores & holds the label's, that is the field name label which is displayed.

    I'm pretty sure I' covered everything you'll need to know and the particular files you will need to work with..

    And watch out for those spaces! Part of Studios bug, you'll seee... Just keep your eye open in regards to spaces and underscores because if things break, you'll have to manually edit the fields file to and/or the field names/labels in the EditView.html file.

    I didn't mention vardefs.php located in the module's directory, this file you might want to tweak with as well, but I have yet to have any problems in which I had to edit or correct anything in vardefs, which holds the fields and labels data for the [default] sugar fields, that is the fields other than your custom fields.

    Get all that?

    The awnser to your question though

  5. #5
    bguss is offline Member
    Join Date
    Sep 2006
    Posts
    9

    Thumbs up Re: EditView Layout Help!!

    Thank you very much. You gave me a lot of information and saved me most probably a days worth of trying to figure it out.

    Brian

Thread Information

Users Browsing this Thread

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

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
  •