Customising a modules' subpanels on mobile

Is there a way to customise which subpanels appear for a module on the mobile site? I would like to remove some of the subpanels without removing the relationships.

Parents
  • Hello Steven Osborne

    It is possible to remove subpanel from any module on mobile website. For example, to remove subpanel from Contacts module:

    Copy subpanels.php 

    from

    modules/Contacts/clients/mobile/layouts/subpanels/subpanels.php

    to  

    custom/modules/Contacts/clients/mobile/layouts/subpanels/subpanels.php

    and removes or comment out the arrays from the custom file. For example, if you wanted to get rid of the Calls subpanel, you would comment out or remove

    array(
        'layout' => 'subpanel',
        'label' => 'LBL_CALLS_SUBPANEL_TITLE',
        'linkable' => false,
        'context' => array(
            'link' => 'calls',
        ),
    ),

    Make sure to go to Admin > Repair > Quick Repair and Rebuild before testing for changes.

Reply
  • Hello Steven Osborne

    It is possible to remove subpanel from any module on mobile website. For example, to remove subpanel from Contacts module:

    Copy subpanels.php 

    from

    modules/Contacts/clients/mobile/layouts/subpanels/subpanels.php

    to  

    custom/modules/Contacts/clients/mobile/layouts/subpanels/subpanels.php

    and removes or comment out the arrays from the custom file. For example, if you wanted to get rid of the Calls subpanel, you would comment out or remove

    array(
        'layout' => 'subpanel',
        'label' => 'LBL_CALLS_SUBPANEL_TITLE',
        'linkable' => false,
        'context' => array(
            'link' => 'calls',
        ),
    ),

    Make sure to go to Admin > Repair > Quick Repair and Rebuild before testing for changes.

Children