Results 1 to 7 of 7

Thread: DetailView of the module Meeting in SUGAR 5

  1. #1
    wkamdem is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    29

    Default DetailView of the module Meeting in SUGAR 5

    Hi folks,

    - In Sugar4 there was in the directory module/Meeings/ the file DetailView.php (DetailView of this module), now in the version5 the file do not exists, how Sugar5 works to display the DetailView or EditView of a module (for example Meetings).

    - How can i hide the subpanel in the DetailView of a module???

    Thanks for ur answers.

    William.

  2. #2
    jsagar's Avatar
    jsagar is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Ahmedabad,India
    Posts
    242

    Default Re: DetailView of the module Meeting in SUGAR 5

    HI,
    Wil you want whole subpanel or any particular field to hide ?
    if you want only particular field of the subpanel for particular module
    then
    you have to change the..... Modules/<modulename>/Metadata/subpaneldefs.php
    and comment to the particular field check it.then field is hide in subpanel of that module
    okey
    might be help you

  3. #3
    wkamdem is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    29

    Default Re: DetailView of the module Meeting in SUGAR 5

    Hey jsagar,

    Thank u for ur answer, how can i do if i want to hide the whole panel... and what's about my first question???

    Thanks

    William

  4. #4
    jsagar's Avatar
    jsagar is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Ahmedabad,India
    Posts
    242

    Default Re: DetailView of the module Meeting in SUGAR 5

    Hi
    if you want to hide whole subpanel simply you have to go Include/MVC/View/SugarView.php and just comment to the $this->displaySubPanels(); you can hide the subpanel.


    with regards
    Jaydeep sagar

  5. #5
    wkamdem is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    29

    Default Re: DetailView of the module Meeting in SUGAR 5

    Hi jsagar,

    Thank u for ur answer, it's work...U probaly know, how can i hide the "Add Invitees" segment in The EditView in the module "Meetings"

    Thanks a lot.

    William

  6. #6
    jsagar's Avatar
    jsagar is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Ahmedabad,India
    Posts
    242

    Default Re: DetailView of the module Meeting in SUGAR 5

    Hi Good Evening
    william, if you want to hide the Add Invitees in meetings
    follow the steps :
    Modules/Meetings/jsclass_scheduler.js
    comment to the SugarWidgetSchedulerSearch.prototype.display()
    Only the part of Add Invitees.
    okey might be works as you need



    Thanks, Regards
    Jaydeep Sagar

  7. #7
    wkamdem is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    29

    Default Re: DetailView of the module Meeting in SUGAR 5

    HI jsagar,

    I find the js-File, but if i wanna hide this segment just for non admin user...Then isn't gonna be possible to do hide it from the JS-File or??

    For Example:
    Some PHP-File (EditView of Meetings)
    PHP Code:
    global $current_user
    if(
    $current_user->is_admin) {
      
    // Then show The Add Invitees segement
    } else { 
    // Don't show it

    I thing JavaScript don t accept the PHP syntax... How can i do it from the PHP-File instead from the JS-File.

    Thanks

    William

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sugar is slow - some ideas to improve the speed
    By mycrmspacegunnar in forum General Discussion
    Replies: 22
    Last Post: 2012-04-04, 01:44 PM
  2. I Can't Get Passed the Logon Page!
    By whatistocome in forum Help
    Replies: 109
    Last Post: 2010-12-28, 07:37 AM
  3. Module Builder
    By Olavo in forum Downloads
    Replies: 418
    Last Post: 2009-02-26, 06:36 AM
  4. Sugar Suite 3.5 Beta Now Available
    By clint in forum Announcements
    Replies: 0
    Last Post: 2005-08-01, 02:03 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
  •