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

Thread: New module doesn't show in Studio

  1. #1
    youssefaoun is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    55

    Default New module doesn't show in Studio

    Hello,

    I am developing a new module.
    To do so, I started reading the forums:
    http://www.sugarcrm.com/forums/show...develop+modules
    http://www.sugarcrm.com/forums/show...45&page=1&pp=10

    - I copied the Opportunities module
    - Modified all the Opportunity/opportunities and made then "module1", all the same name
    - I uploaded and installed the module using the module loader... everything was fine 100%

    When I go to Studio->edit modules, I am unable to see my module..
    I read about "repair studio", well i clicked all the repairs....

    Any solution?

    regards,
    Edit/Delete Message

  2. #2
    anna is offline Sugar Community Member
    Join Date
    Jan 2007
    Location
    USA
    Posts
    81

    Default Re: New module doesn't show in Studio

    You need to create studio.php in metadata directory under your new module so it will show up in Studio. See any existing module for an examle (e.g. modules/Contacts/metadata/studio.php). I think that's all that is needed!

  3. #3
    youssefaoun is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    55

    Default Re: New module doesn't show in Studio

    Oh, This has been done since the beginning... and nothing is showing up....
    I read it in a forum

    Thank you

    Other solutions?

  4. #4
    anna is offline Sugar Community Member
    Join Date
    Jan 2007
    Location
    USA
    Posts
    81

    Default Re: New module doesn't show in Studio

    Quote Originally Posted by youssefaoun
    Oh, This has been done since the beginning... and nothing is showing up....
    I read it in a forum

    Thank you

    Other solutions?
    Sorry, I didn't realize that you had already tried creating this file. As far as I know this is all that is needed.
    You might want to check the tab config (under Admin) and make sure that the new module is not in the hidden tabs ... sorry, can't think of anything else at the moment.
    Good luck

  5. #5
    youssefaoun is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    55

    Default Re: New module doesn't show in Studio

    Do you have a module that you have already developed and that shows in the studio?

    Is it a module that I could have?

    Regards

  6. #6
    anna is offline Sugar Community Member
    Join Date
    Jan 2007
    Location
    USA
    Posts
    81

    Default Re: New module doesn't show in Studio

    Sorry, I cannot distribute the module at this moment.
    However, I just tried it with my current module (I did not have it enabled for studio yet) and this is all that was needed for it to at least show up as one of the modules in studio.

    --> modules/Reservations/metadata/studio.php
    Code:
    <?php
     $GLOBALS['studioDefs']['Reservations'] = array(
           'LBL_DETAILVIEW'=>array(
                                   'template'=>'xtpl',
                                   'template_file'=>'modules/Reservations/DetailView.html',
                                   'php_file'=>'modules/Reservations/DetailView.php',
                                   'type'=>'DetailView',
                                   ),
           'LBL_EDITVIEW'=>array(
                                   'template'=>'xtpl',
                                   'template_file'=>'modules/Reservations/EditView.html',
                                   'php_file'=>'modules/Reservations/EditView.php',
                                   'type'=>'EditView',
                                   ),
           'LBL_LISTVIEW'=>array(
                                   'template'=>'listview',
                                   'meta_file'=>'modules/Reservations/listviewdefs.php',
                                   'type'=>'ListView',
                                   ),
           'LBL_SEARCHFORM'=>array(
                                   'template'=>'xtpl',
                                   'template_file'=>'modules/Reservations/SearchForm.html',
                                   'php_file'=>'modules/Reservations/ListView.php',
                                   'type'=>'SearchForm',
                                   ),
     );
    ?>
    I have some permission issues with writing the files from Studio and I cannot try what actually gets displayed for each view ... Studio support is currently not on my priority list, so I don't have time to investigate it any further. I realize you already tried creating the studio.php file, so I don't know if the above code is of any help .. but that's all I can provide at this moment.
    Good luck

  7. #7
    youssefaoun is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    55

    Default Re: New module doesn't show in Studio

    I have th same file

    Here is what I am getting in the Studio.



    The name of the Module is not showing.
    On the other hand here is the HTML:

    <a href='#' onclick='document.StudioWizard.option.value="aleks Mod1";document.StudioWizard.submit()'></a>
    <a href='#' onclick='document.StudioWizard.option.value="Accou nts";document.StudioWizard.submit()'>Accounts</a>

    The name of my module is not being printed. But the link is.

    regards

  8. #8
    RickM is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Boca Raton, FL
    Posts
    220

    Default Re: New module doesn't show in Studio

    I'm working from memory here, so I may be a bit off.... but the module name is pulled from the language file as far as I remember. Check out your language file in the /include/language directory. I believe the array name is $app_list_strings.

    Good luck & I make no warranty to this working for you - but it worked for me.

    Rick

  9. #9
    anna is offline Sugar Community Member
    Join Date
    Jan 2007
    Location
    USA
    Posts
    81

    Default Re: New module doesn't show in Studio

    Quote Originally Posted by youssefaoun
    I have th same file

    Here is what I am getting in the Studio.



    The name of the Module is not showing.
    On the other hand here is the HTML:

    <a href='#' onclick='document.StudioWizard.option.value="aleks Mod1";document.StudioWizard.submit()'></a>
    <a href='#' onclick='document.StudioWizard.option.value="Accou nts";document.StudioWizard.submit()'>Accounts</a>

    The name of my module is not being printed. But the link is.

    regards
    So your module is 'showing up' in studio, there is just no label for it! I think RickM is right, check your language file for the custom module, and also make sure there is an entry for your module in the $app_list_strings like this:
    Code:
    $app_list_strings['moduleList']['Reservations']='Reservations';
    If you are using Module Loader to install your custom module, you can place this entry in /application/mod_app_strings.php under your module, and then use an entry in the manifest like this:

    Code:
     'language'=> array(
       array('from'     => '<basepath>/application/mod_app_strings.php', 
             'to_module'=> 'application',
             'language' => 'en_us'
       ),
    This will create a custom file under custom/application/Ext/Language/en_us.lang.ext.php where the $app_list_strings entry should be listed.

    Hope this helps

  10. #10
    youssefaoun is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    55

    Default Re: New module doesn't show in Studio

    You're absolutely right my friend!
    Yesterday I managed to get it to run... but I was uncertain of the reason.... since I made a lot of modification.

    Thank you for giving me the good information.

    It is runnung
    regards.
    Last edited by youssefaoun; 2007-05-01 at 06:22 PM.

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. Module Builder
    By Olavo in forum Downloads
    Replies: 418
    Last Post: 2009-02-26, 06:36 AM
  2. New module doesn't show in Studio
    By youssefaoun in forum General Discussion
    Replies: 0
    Last Post: 2007-04-25, 09:24 PM
  3. Replies: 1
    Last Post: 2006-12-01, 04:13 AM
  4. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  5. Custom module won't show in studio
    By polvip in forum Developer Help
    Replies: 0
    Last Post: 2005-11-06, 01:06 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
  •