Results 1 to 3 of 3

Thread: Two columns Detail View

  1. #1
    Sitalk Guest

    Default Two columns Detail View

    Hello everybody

    I would like to make the view.detail.php of a custom module to be displayed in two columns
    Left: The current module's detail view.
    Right: The subpanels petaining to the module.
    My detailviewdefs.php already has maxColumns set to 2.
    But the detail view displays only one column.
    Would anybody please tell me what else shoud be done?


  2. #2
    Sitalk Guest

    Default Re: Two columns Detail View

    I figured it out... For those interested this is what I've done:
    I copied the include/DetailView/DetailView.tpl to custom/include/DetailView/DetailView.tpl
    I added a new class (panel_detailview_tabs) to the detailview_tabs div (found at the very beginning of the file):

    {{include file=$headerTpl}}
    {sugar_include include=$includes}
    <div id="{{$module}}_detailview_tabs" class="panel_detailview_tabs {{if $useTabs}}yui-navset detailview_tabs{{/if}}">...

    I copied the currently used theme from the /themes folder to the /custom/themes folder and added this code to the themes/MyTheme/css/style.css file:

    width: 48%;
    float: left;
    margin: 5px;

    width: 48%;
    float: left;
    margin: 5px;

    Now the detail view of every module is split into two columns.
    The left column displays the actual detail view of the account, lead or contact (or whichever module you are viewing)
    And the right column displays the subpanels of all related modules.

  3. #3
    saj123 Guest

    Default Re: Two columns Detail View

    i wanted to try that.. but i am not getting the include folder in custom folder ????? so what to do for that.......... i wanted to create 3 columns in my home page of all modules.......

    help me out

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. detail view page colums changed to one columns
    By darrenpatrick in forum Developer Help
    Replies: 0
    Last Post: 2012-04-11, 04:00 PM
  2. Sort columns in list view
    By DN667 in forum Help
    Replies: 12
    Last Post: 2011-05-27, 05:41 PM
  3. How to add more than 2 Columns in Edit and Detail View?
    By shyam007 in forum Developer Help
    Replies: 15
    Last Post: 2010-12-24, 11:44 AM
  4. Replies: 1
    Last Post: 2009-03-04, 10:56 AM
  5. Adding Columns in Detail & Edit views
    By newseed in forum Help
    Replies: 6
    Last Post: 2006-10-14, 01:20 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts