Single Component/module installation

For Joomla! 2.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Note: All 1.6, 1.7 and 3.5 releases have reached end of life and should be updated to 3.x.

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Locked
SonPeo
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Feb 29, 2012 11:19 pm

Single Component/module installation

Post by SonPeo » Wed Feb 29, 2012 11:25 pm

Hello,

I'm new in joomla and I've a questions for you.

I want make a unique installation that install a component and various modules all-in-one.
Is this possible?
if yes can someone link documentations to do this.

Tnx

Edit: i don't know if is something changed, but I'm speaking about J2.5

User avatar
shakur1911
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 104
Joined: Tue May 06, 2008 12:28 pm

Re: Single Component/module installation

Post by shakur1911 » Thu Mar 01, 2012 12:53 pm

In your controller you should have a file install.php

Code: Select all

function com_install () {
  //do your component installation stuff here
}

//Install a module
$mod_installer = new JInstaller();
$mod_installer->install('path_to_module_folder');


SonPeo
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Feb 29, 2012 11:19 pm

Re: Single Component/module installation

Post by SonPeo » Thu Mar 01, 2012 8:10 pm

Thanks for your reply, but could you clarify to me what's the path_to_module_folder i have to pass as parameter.

This is what imagine I have to do: I have a unique zip containing a component and also all modules i want to install.
I read that into .xml of component i have to indicate all files to install, I suppose all modules too. So the path_to_module_folder is the relative path inside the .zip or the path that will have after installation?

Regards

User avatar
shakur1911
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 104
Joined: Tue May 06, 2008 12:28 pm

Re: Single Component/module installation

Post by shakur1911 » Thu Mar 01, 2012 9:41 pm

assuming that you have your module code inside the component zip in a folder called 'module' then the path will be:

Code: Select all

$mod_installer->install($this->parent->getPath('source').DS.'module');
hope this helps

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Single Component/module installation

Post by sovainfo » Sat Mar 03, 2012 10:18 pm

Have a look at the component xmap. It installs as a package. It includes several plugins. Perhaps it works with modules as well.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

SonPeo
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Feb 29, 2012 11:19 pm

Re: Single Component/module installation

Post by SonPeo » Sun Mar 04, 2012 12:52 pm

Tnx to All,

I found a solution that fit my needs.

Joomla support native packaging that allow to make a unique zip containing all extension and install then together.

Who need can find at the link http://itprism.com/blog/native-joomla-p ... stallation the steps to follow.

But, do exists a complete online documentation about joomla that satisfied all need of a developer, or we need to "googling" and/or buy a book!.

Regards


Locked

Return to “Joomla! 2.5 Coding”