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.
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.
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
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?
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
I got the following error-
missing manifest.php even though it's there with modified values..
i.e Songs replaced with poems
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\
No its not in a directory
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.
Poems module attached,
tell me why it does not work?
thanks,
Ravi.
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks