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

Thread: Module Install/Uninstall

  1. #1
    raviba is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    24

    Default Module Install/Uninstall

    What actually happens during install/uninstall of a module?
    which are the files modified and what are the changes made to the files?
    also how does one disable a tab/module ?
    thanks,
    Ravi.

  2. #2
    simple is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    259

    Default Re: Module Install/Uninstall

    Hi

    during the installation of a module files are copied to the system, exisiting files will be replaced, new ones created.

    A module that is uninstallable means that all files that have been installed may be deleted. No existing (core) files have been replaced during the installation.

    To disable a module for all users go to the admin page and click on "Configure Tabs".

    Pascal

  3. #3
    raviba is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    24

    Default Re: Module Install/Uninstall

    Hi Simple,

    I meant in the programming sense..

    what code goes where ?

    lets say I have a module Poems where-in I have replaced 'Songs' in all files of Songs zip file with "Poems"

    logically i should be able to install Poems from the module loader?

    do I have to manually configure some files?

  4. #4
    simple is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    259

    Default Re: Module Install/Uninstall

    Hi Ravi - have you created/edited the file manifest.php? This file defines where the files of the module will be copied to during the installation.

    A copy of the Songs-Module (with correct replacements) shoud be installed in the directory modules/Poems.
    Did you get any errors during the installation of your Poem module?

    Pascal

  5. #5
    raviba is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    24

    Default Re: Module Install/Uninstall

    I got the following error-

    missing manifest.php even though it's there with modified values..

    i.e Songs replaced with poems

  6. #6
    simple is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    259

    Default Re: Module Install/Uninstall

    And in your .zip package the manifest.php file is NOT in a directory?

    Name -> Path
    ------------------------------------------------------------
    manifest.php ->
    ...
    DetailView.php -> modules\Poems\
    ListView.php -> modules\Poems\

  7. #7
    raviba is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    24

    Default Re: Module Install/Uninstall

    No its not in a directory

  8. #8
    simple is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    259

    Default Re: Module Install/Uninstall

    Hmm...you can send me your Poems package if you like. I have no idea why you get this error.

    Maybe it's becuase the Song Module is "old"- or does a new example package exist for Sugar 4.x?
    Last edited by simple; 2006-09-06 at 12:54 PM.

  9. #9
    raviba is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    24

    Default Re: Module Install/Uninstall

    Poems module attached,

    tell me why it does not work?

    thanks,
    Ravi.
    Attached Files Attached Files

  10. #10
    simple is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    259

    Default Re: Module Install/Uninstall

    The files in your .zip are in a directory "Poems_Modulev1.0". No base directory must exist in the zip file.

    See attached version - I was able to upload it on a 4.2.1 PRO instance, but didn't try to install it.

    Regards, Pascal
    Attached Files Attached Files

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)

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
  •