Blogs
March
Greetings from Urdhva Tech.
Sending love to people who drop us How to(s). We noticed a general concerned query by a non developer SugarCRM user.
Concern in his words
"I would like to know if its possible to use more than 2 columns in a edit/detail view. On a screen 1280x800 or even 1920, two columns seems a waste of space. How can i use more (field) columns."
Using Suitecrm 7.1.5 Sugar 6..5.20 build 1001
Although, he needs to do some manual changes, we thought this is a general concern, so why not write a blog post about it! Here we go.
P.S. The changes are module specific, so if you wish to have more than 2 columns in views, you need to go through the steps for each module.
Lets take Accounts module for example.
Step 1: Go to SugarCRM directory. Browse through custom/modules/<module_name>/metadata (For our example, <module_name> = Accounts)
Step 2: If you don't see editviewdefs.php there, or don't have folder custom/modules/<module_name>/metadata folder, Login to SugarCRM as administrator. Go to Admin > Studio > Accounts > Layouts > EditView > and hit save and deploy. Then repeat Step 1.
Step 3: Open editviewdefs.php in an text editor. Search for word maxColumns. Change its value from 2 to 3 or number of column you wish to have. (Will take 3 as example)
Step 4: Scroll a little down to locate first field in view. You might see something like following
0 =>
array (
'name' => 'first_name',
),
Copy and paste it number of times the column you have specified in Step 3. And change the index.
Which should lead you to something like following.
0 =>
array (
'name' => 'first_name',
),
1 =>
array (
'name' => 'first_name',
),
2 =>
array (
'name' => 'first_name',
),
Save the changes.
Step 5: To perform Repair, go to Admin > Repair > Quick Repair and rebuild.
Step 6: Go to Admin > Studio > Accounts > Layout > EditView and you will see more columns to add new fields to or shuffle the fields as per your needs and hit Save and Deploy!
Repeat same steps for Detail Views!
Voila!
Comments
- No Comments Found.