Results 1 to 7 of 7

Thread: Cannot Get Subpanel to have a clickable link

  1. #1
    cmcfarland425 is offline Senior Member
    Join Date
    Jun 2008
    Posts
    37

    Default Cannot Get Subpanel to have a clickable link

    I am currently building a new module.
    When i was originaly testing everything worked fine you would go into the parent module.

    But soon as i changed the subpanel layout i no longer have the edit button or the remove button.
    and there is no link to click on to go into the details.

    How can i correct this?

  2. #2
    cmcfarland425 is offline Senior Member
    Join Date
    Jun 2008
    Posts
    37

    Default Re: Cannot Get Subpanel to have a clickable link

    Also i am using IIS and SQL on Sugar Version 5.0.0e (Build 3275)

  3. #3
    franklin_sugar is offline Sugar Team Member
    Join Date
    Jun 2006
    Posts
    157

    Default Re: Cannot Get Subpanel to have a clickable link

    Hi cmcfarland425,

    Can you give more detailed steps on how to reproduce this issue?

    Thanks,
    Franklin

  4. #4
    Danielg42 is offline Sugar Community Member
    Join Date
    Jun 2006
    Location
    Orange County, CA
    Posts
    187

    Default Re: Cannot Get Subpanel to have a clickable link

    Go to your sugar directory...
    sugar/custom/modules/MODULENAME/metadata/subpanels

    Open the subpanel.php and add this line
    'widget_class' => 'SubPanelDetailViewLink',
    to the name field array.
    Should look like this.
    Code:
      'name_c' => 
      array (
        'name' => 'name_c',
        'vname' => 'LBL_NAME',
        'width' => '40',    
    		'widget_class' => 'SubPanelDetailViewLink',
      ),
    For the edit/remove buttons.... add this to the end of the file.
    Code:
      'edit_button' => 
      array (
        'widget_class' => 'SubPanelEditButton',
        'module' => 'MODULENAME',
        'width' => '4',
      ),
      'remove_button' => 
      array (
        'widget_class' => 'SubPanelRemoveButton',
        'module' => 'MODULENAME',
        'width' => '4',
      ),

  5. #5
    Join Date
    Aug 2008
    Posts
    17

    Default Re: Cannot Get Subpanel to have a clickable link

    Quote Originally Posted by Danielg42
    Go to your sugar directory...
    sugar/custom/modules/MODULENAME/metadata/subpanels

    Open the subpanel.php and add this line to the name field array.
    Should look like this.
    Code:
      'name_c' => 
      array (
        'name' => 'name_c',
        'vname' => 'LBL_NAME',
        'width' => '40',    
    		'widget_class' => 'SubPanelDetailViewLink',
      ),
    For the edit/remove buttons.... add this to the end of the file.
    Code:
      'edit_button' => 
      array (
        'widget_class' => 'SubPanelEditButton',
        'module' => 'MODULENAME',
        'width' => '4',
      ),
      'remove_button' => 
      array (
        'widget_class' => 'SubPanelRemoveButton',
        'module' => 'MODULENAME',
        'width' => '4',
      ),

    When going into the directory i dont have the subpanel.php file
    but i do have a listviewdef.php

    another thing i noticed.. if i am logged on as admin. then the links are there.. but if i logon as a user the link does not work. but for other subpanel modules it does.

  6. #6
    Danielg42 is offline Sugar Community Member
    Join Date
    Jun 2006
    Location
    Orange County, CA
    Posts
    187

    Default Re: Cannot Get Subpanel to have a clickable link

    Sorry, look for the FOLDER called "subpanels" then there should be a file called default.php in the folder.

  7. #7
    Billwobo is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    33

    Thumbs up Re: Cannot Get Subpanel to have a clickable link

    This is Great! Thanks for this. Great help.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Subpanel Export Link
    By gneill794 in forum Developer Help
    Replies: 21
    Last Post: 2008-08-05, 05:26 AM
  2. Cannot Get Subpanel to have a clickable link
    By cmcfarland425 in forum Downloads
    Replies: 1
    Last Post: 2008-06-30, 02:32 AM
  3. Merge Contacts show sql error
    By hheckner in forum General Discussion
    Replies: 5
    Last Post: 2006-10-04, 01:57 PM
  4. how to add a custom link to a subpanel field
    By tooth_decay in forum Developer Help
    Replies: 3
    Last Post: 2005-12-06, 09:00 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
  •