Results 1 to 3 of 3

Thread: 如何给旧版本的模块增加快速创建?

  1. #1
    hooha is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    96

    Default 如何给旧版本的模块增加快速创建?

    目前用的是6.2.0 之前的模块是5.0创建的,感觉先版本的快速创建很好用,但是老的模块没有,怎么才可以手动添 加?

    高手帮帮我。谢谢

  2. #2
    hooha is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    96

    Default Re: 如何给旧版本的模块增加快速创建?

    顶一下,我觉得快速创建非常好用,不用打开新窗口就可以添加数据,速度快,但是老版本创建的模块没有这个功 能,每次添加数据都是新窗口打开,高手帮我看看,怎么才能给老模块增加快速创建。

    谢谢

  3. #3
    siyang is offline Senior Member
    Join Date
    Apr 2010
    Posts
    46

    Default Re: 如何给旧版本的模块增加快速创建?

    Quote Originally Posted by hooha View Post
    顶一下,我觉得快速创建非常好用,不用打开新窗口就可以添加数据,速度快,但是老版本创建的模块没有这个功 能,每次添加数据都是新窗口打开,高手帮我看看,怎么才能给老模块增加快速创建。

    谢谢
    比如 你在联系人 里 添加 这个模块的快速创建

    /custom/Extension/modules/Contacts/Ext/Layoutdefs/layoutdefs.php
    PHP Code:
    <?php
    $layout_defs
    ["Contacts"]["subpanel_setup"]["模块名称"] = array (
      
    'order' => 10,
      
    'module' => '模块名称',
      
    'subpanel_name' => 'default',
      
    'sort_order' => 'asc',
      
    'sort_by' => 'id',
      
    'title_key' => '模块名称',
      
    'get_subpanel_data' => '模块联系关系',
      
    'top_buttons' =>
      array (
        
    =>
        array (
          
    'widget_class' => 'SubPanelTopButtonQuickCreate',
        ),
        
    =>
        array (
          
    'widget_class' => 'SubPanelTopSelectButton',
          
    'mode' => 'MultiSelect',
        ),
      ),
    );
    qq:35519656

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 8
    Last Post: 2012-02-10, 02:10 AM
  2. Replies: 2
    Last Post: 2009-11-19, 12:22 AM
  3. Replies: 2
    Last Post: 2009-11-06, 08:05 AM
  4. Replies: 8
    Last Post: 2009-10-09, 09:11 AM
  5. Replies: 2
    Last Post: 2009-03-26, 02:56 AM

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
  •