Results 1 to 7 of 7

Thread: Studio > Customers > Layouts > EditView

  1. #1
    Dustin09 is offline Senior Member
    Join Date
    Dec 2009
    Posts
    29

    Default Studio > Customers > Layouts > EditView

    I made a custom module, Customers. When I try to edit the layout view, 'EditView' I can not drag panels or rows to the layout. Any help please?

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Studio > Customers > Layouts > EditView

    Last time that happened to me it was due to malformed code in editviewdefs.php for that module. Maybe that's what is happening here.

  3. #3
    Dustin09 is offline Senior Member
    Join Date
    Dec 2009
    Posts
    29

    Default Re: Studio > Customers > Layouts > EditView

    I got some figuring out to do, thanks man.

    Does anything look funky, here is what is in editviewdefs
    PHP Code:
    <?php
    $module_name 
    'LINK_Customer';
    $viewdefs [$module_name] = 
    array (
      
    'EditView' => 
      array (
        
    'templateMeta' => 
        array (
          
    'maxColumns' => '2',
          
    'widths' => 
          array (
            
    => 
            array (
              
    'label' => '10',
              
    'field' => '30',
            ),
            
    => 
            array (
              
    'label' => '10',
              
    'field' => '30',
            ),
          ),
        ),
        
    'panels' => 
        array (
        ),
      ),
    );
    ?>

  4. #4
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Studio > Customers > Layouts > EditView

    Just for kicks try this to see if you can add a row to it (may need to remove any working copies first to ensure this loads correctly):
    PHP Code:
    <?php
    $module_name 
    'LINK_Customer';
    $viewdefs [$module_name] = 
    array (
      
    'EditView' => 
      array (
        
    'templateMeta' => 
        array (
          
    'maxColumns' => '2',
          
    'widths' => 
          array (
            
    => 
            array (
              
    'label' => '10',
              
    'field' => '30',
            ),
            
    => 
            array (
              
    'label' => '10',
              
    'field' => '30',
            ),
          ),
        ),
        
    'panels' => 
        array (
            
    'default' => array(
                
    => array (
                    
    => array (
                         
    'name' => 'name',
                         
    'label' => 'LBL_NAME',
                    ),
                    
    => NULL,
                ),
            ),
        ),
      ),
    );
    ?>

  5. #5
    Dustin09 is offline Senior Member
    Join Date
    Dec 2009
    Posts
    29

    Default Re: Studio > Customers > Layouts > EditView

    God bless you. Thanks man, glad it wasn't a whole lot to do.

  6. #6
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Studio > Customers > Layouts > EditView

    Did it work? I'm guessing it was just confused since no panel was initially defined.

  7. #7
    Dustin09 is offline Senior Member
    Join Date
    Dec 2009
    Posts
    29

    Default Re: Studio > Customers > Layouts > EditView

    Yeah, it worked great. I'm glad you're here

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2009-01-20, 09:56 PM
  2. Studio layouts stopped loading
    By Amadeus7 in forum Help
    Replies: 1
    Last Post: 2009-01-08, 03:02 PM
  3. Replies: 0
    Last Post: 2008-12-16, 03:42 PM
  4. Replies: 3
    Last Post: 2007-02-28, 01:56 PM
  5. Edit target-related layouts in Studio
    By george_bbch in forum General Discussion
    Replies: 1
    Last Post: 2006-05-17, 12:18 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
  •