Results 1 to 4 of 4

Thread: Remove sidepanel forms

  1. #1
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Remove sidepanel forms

    In the left hand sidepanel each module has a form to do a quick create

    How can I get rid of these?
    I can modify them by using sidecreateviewdefs.php but I want to remove all of them

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Remove sidepanel forms

    Hi, Mike.

    The script which display the left side quick create form is the modules/ModuleName/Forms.php

    By the way, you are right closed to become a Prolific Poster.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Remove sidepanel forms

    Quote Originally Posted by andopes
    Hi, Mike.

    The script which display the left side quick create form is the modules/ModuleName/Forms.php

    By the way, you are right closed to become a Prolific Poster.

    Cheers
    Thanks Andre - my problem is that I cant work out what to put in Forms.php to get rid of the side form

    I tried creating a blank function get_new_record_form but that just give me the error message Fatal error: Cannot redeclare get_new_record_form() (previously declared in /srv/www/ivycrm_dev/include/EditView/SideQuickCreate.php:58) in /srv/www/ivycrm_dev/modules/Cases/Forms.php on line 41

    I managed to get rid of all side forms by editing /include/EditView/SideQuickCreate.php but I'd prefer a more suble solution

    Yup getting there as a prolific poster - probably down to the fact I sometimes post before I think

  4. #4
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Remove sidepanel forms

    This is frustrating

    in include/MVC/View/SugarView.php there is the following code

    function displayHeader(){
    global $currentModule;
    $GLOBALS['app']->headerDisplayed = true;
    if(!function_exists('get_new_record_form') && file_exists('modules/' . $this->module .'/metadata/sidecreateviewdefs.php')){
    require_once('include/EditView/SideQuickCreate.php');
    }

    This calls include/EditView/SideQuickCreate.php' if the function get_new_record_form does not exist

    My problem is this gets called before Forms.php so I can't redefine the function in Forms.php

    if I comment out the if statement then I can call require_once('include/EditView/SideQuickCreate.php'); from each Modules Forms.php but there must be a better way of doing this

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. soap: remove a single relationship
    By thierry.beeckmans in forum Developer Help
    Replies: 6
    Last Post: 2009-07-01, 08:42 PM
  2. remove new case from sidepanel
    By mikesolomon in forum Developer Help
    Replies: 4
    Last Post: 2008-05-15, 02:13 PM
  3. Replies: 0
    Last Post: 2007-01-12, 10:23 PM
  4. remove me
    By 100asa in forum Help
    Replies: 1
    Last Post: 2006-06-19, 04:31 PM
  5. Replies: 0
    Last Post: 2006-04-19, 04:37 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
  •