Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Losted buttons

  1. #1
    ilia_2s is offline Member
    Join Date
    Aug 2009
    Posts
    16

    Default Losted buttons

    Hi, I upgreded 5.5 -> 6.1, Also I installed a ModerAqua theme.

    After that I lost a "create" buttons inside modules.


    Plese help me, Where I must dig?
    Attached Images Attached Images  

  2. #2
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: Losted buttons

    Does this buttons exist before install ModerAqua theme?
    Be sure that ModerAqua is developed for SugarCRM 6.x
    Letrium ltd. - Only high quality service
    http://letrium.com

  3. #3
    ilia_2s is offline Member
    Join Date
    Aug 2009
    Posts
    16

    Default Re: Losted buttons

    YES! This buttons was present! But I am not shure that I not change smth else in my modules... ((( Generally reason for updating was in studio problems, but now everythink is ok, except "create" button. Can you explain what i must check?



    The ModerAqua is theme for 6.X now. This theme helps to escape some "classic" theme problems.
    http://www.sugarforge.org/projects/modernaqua/

  4. #4
    ilia_2s is offline Member
    Join Date
    Aug 2009
    Posts
    16

    Default Re: Losted buttons

    I found a file

    support1:/var/www/crm/modules/pm1_uved/metadata/subpanels# cat ./default.php
    <?php
    $module_name='pm1_uved';
    $subpanel_layout = array (
    'top_buttons' =>
    array (
    0 =>
    array (
    'widget_class' => 'SubPanelTopCreateButton',
    ),
    // 1 =>
    // array (
    // 'widget_class' => 'SubPanelTopSelectButton',
    // 'popup_module' => 'pm1_uved',
    // ),
    ),
    'where' => '',
    'list_fields' =>
    array (
    'n_uved_kga' =>
    array (
    'type' => 'varchar',
    'vname' => 'LBL_N_UVED_KGA',
    'width' => '10%',
    'default' => true,
    ),
    'receive_date' =>
    array (
    'type' => 'date',
    'vname' => 'LBL_RECEIVE_DATE',
    'width' => '10%',
    'default' => true,
    ),
    'date_entered' =>
    array (
    'type' => 'datetime',
    'vname' => 'LBL_DATE_ENTERED',
    'width' => '10%',
    'default' => true,
    ),
    'edit_button' =>
    array (
    'widget_class' => 'SubPanelEditButton',
    'module' => 'pm1_uved',
    'width' => '4%',
    'default' => true,
    ),
    'remove_button' =>
    array (
    'widget_class' => 'SubPanelRemoveButton',
    'module' => 'pm1_uved',
    'width' => '5%',
    'default' => true,
    ),
    ),
    I edit this files earlier, for hide select button and now I see my old files. But create button is uncommented and sellect button is commented!

  5. #5
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: Losted buttons

    Check subpaneldefs.php in the module which screen-shot you show.
    Letrium ltd. - Only high quality service
    http://letrium.com

  6. #6
    ilia_2s is offline Member
    Join Date
    Aug 2009
    Posts
    16

    Default Re: Losted buttons

    This file is contains only in directories where located standart modules.

  7. #7
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: Losted buttons

    ok, then check layoutdefs.php in the custom or module directory
    Letrium ltd. - Only high quality service
    http://letrium.com

  8. #8
    ilia_2s is offline Member
    Join Date
    Aug 2009
    Posts
    16

    Default Re: Losted buttons

    Also I am not found this file in <sugar>/modules/<my_module> & <sugar>/custom/modules/<my_module>.

    But I found
    layoutdefs.ext.php

    in

    support1:/var/www/crm/custom/modules/pm1_project_by_is/Ext/Layoutdefs

    This is a big file, thus I post a latest notes:


    start
    ....


    // created: 2010-05-26 15:53:51
    $layout_defs["pm1_project_by_is"]["subpanel_setup"]["pm1_accounting_pm1_project_by_is"] = array (
    'order' => 100,
    'module' => 'pm1_accounting',
    'subpanel_name' => 'default',
    'sort_order' => 'asc',
    'sort_by' => 'id',
    'title_key' => 'LBL_PM1_ACCOUNTING_PM1_PROJECT_BY_IS_FROM_PM1_ACC OUNTING_TITLE',
    'get_subpanel_data' => 'pm1_accounting_pm1_project_by_is',
    'top_buttons' =>
    array (
    0 =>
    array (
    'widget_class' => 'SubPanelTopCreateButton',
    ),
    0 =>
    array (
    'widget_class' => 'SubPanelTopSelectButton',
    'mode' => 'MultiSelect',
    ),
    ),
    );


    // created: 2010-05-26 15:53:52
    $layout_defs["pm1_project_by_is"]["subpanel_setup"]["pm1_oko_kis_pm1_project_by_is"] = array (
    'order' => 100,
    'module' => 'pm1_oko_kis',
    'subpanel_name' => 'default',
    'sort_order' => 'asc',
    'sort_by' => 'id',
    'title_key' => 'LBL_PM1_OKO_KIS_PM1_PROJECT_BY_IS_FROM_PM1_OKO_KI S_TITLE',
    'get_subpanel_data' => 'pm1_oko_kis_pm1_project_by_is',
    'top_buttons' =>
    array (
    0 =>
    array (
    'widget_class' => 'SubPanelTopCreateButton',
    ),
    0 =>
    array (
    'widget_class' => 'SubPanelTopSelectButton',
    'mode' => 'MultiSelect',
    ),
    ),
    );


    // created: 2010-05-26 15:53:52
    $layout_defs["pm1_project_by_is"]["subpanel_setup"]["pm1_tgo_pm1_project_by_is"] = array (
    'order' => 100,
    'module' => 'pm1_TGO',
    'subpanel_name' => 'default',
    'sort_order' => 'asc',
    'sort_by' => 'id',
    'title_key' => 'LBL_PM1_TGO_PM1_PROJECT_BY_IS_FROM_PM1_TGO_TITLE' ,
    'get_subpanel_data' => 'pm1_tgo_pm1_project_by_is',
    'top_buttons' =>
    array (
    0 =>
    array (
    'widget_class' => 'SubPanelTopCreateButton',
    ),
    0 =>
    array (
    'widget_class' => 'SubPanelTopSelectButton',
    'mode' => 'MultiSelect',
    ),
    ),
    );


    // created: 2010-05-26 15:53:52
    $layout_defs["pm1_project_by_is"]["subpanel_setup"]["pm1_oko_topo_pm1_project_by_is"] = array (
    'order' => 100,
    'module' => 'pm1_oko_topo',
    'subpanel_name' => 'default',
    'sort_order' => 'asc',
    'sort_by' => 'id',
    'title_key' => 'LBL_PM1_OKO_TOPO_PM1_PROJECT_BY_IS_FROM_PM1_OKO_T OPO_TITLE',
    'get_subpanel_data' => 'pm1_oko_topo_pm1_project_by_is',
    'top_buttons' =>
    array (
    0 =>
    array (
    'widget_class' => 'SubPanelTopCreateButton',
    ),
    0 =>
    array (
    'widget_class' => 'SubPanelTopSelectButton',
    'mode' => 'MultiSelect',
    ),
    ),
    );


  9. #9
    ilia_2s is offline Member
    Join Date
    Aug 2009
    Posts
    16

    Default Re: Losted buttons

    is it correct, that "top_buttons" array cosists two records, they is both started with "0 =>" ????

  10. #10
    ilia_2s is offline Member
    Join Date
    Aug 2009
    Posts
    16

    Default Re: Losted buttons

    I change


    'top_buttons' =>
    array (
    0 =>
    array (
    'widget_class' => 'SubPanelTopCreateButton',
    ),
    0 =>
    array (
    'widget_class' => 'SubPanelTopSelectButton',
    'mode' => 'MultiSelect',
    ),

    TO

    'top_buttons' =>array (
    array ('widget_class' => 'SubPanelTopCreateButton'),
    ),
    in

    support1:/var/www/crm/custom/Extension/modules/pm1_project_by_is/Ext/Layoutdefs/is_project_module.php


    and the create button is appear!!! It's look great, but this is auto-generated file! How i can do my changes by the correct way?

Page 1 of 2 12 LastLast

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-12-21, 05:47 PM
  2. Buttons and Javascript
    By ctaylor2410 in forum Developer Help
    Replies: 24
    Last Post: 2008-11-07, 04:13 PM
  3. How to add buttons?
    By Tavares in forum Help
    Replies: 0
    Last Post: 2007-02-07, 09:55 AM
  4. Upgrading from 4.2.1 to 4.5.0h, I losted all attached files to emails
    By ECR in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-01-19, 09:00 PM
  5. Subpanel buttons appear twice
    By velocitygirl in forum Help
    Replies: 3
    Last Post: 2006-06-13, 06:32 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
  •