Does JInstallerComponent autodetect and install modules, plugins, & languages?

28 views
Skip to the first unread message

reynaldo celaya III

unread,
29 Aug 2012, 22:11:3729/08/2012
to joomla-...@googlegroups.com
The documentation isnt too clear on this page about including languages,modules and plugins in your components installer package/manifiest.xml :
http://docs.joomla.org/Manifest_files

For Languages
Heres the language section of the documentation:
<!-- Joomla! 1.5 language tag, deprecated since Joomla! 1.6 -->
<languages folder="langfiles">
        <language tag="en-GB">en-GB.com_example.ini</language>
</languages>

It says deprecated, but in the code for JInstallerComponent it checks for languages
// Parse optional tags
        $this->parent->parseMedia($this->manifest->media);
        $this->parent->parseLanguages($this->manifest->languages);
        $this->parent->parseLanguages($this->manifest->administration->languages, 1);

Do we use ?
<languages folder="langfiles" />

Plugins and Modules

To streamline the process for large components with non optional plugins/modules there should be some kind of auto installer just like languages. Ive seen components developers cook up their own way of doing this in the install script, but its a common need to have a mass extension install.

Ive been out of the installer development process for a while and may have missed something, Is there a standard way of doing this (didnt see one while debugging)?

Why are the installers part of the joomla platform package and not cms?


Rouven Weßling

unread,
29 Aug 2012, 22:14:1329/08/2012
to joomla-...@googlegroups.com
On 30.08.2012, at 04:11, reynaldo celaya III <rcel...@gmail.com> wrote:

For Languages
Heres the language section of the documentation:
<!-- Joomla! 1.5 language tag, deprecated since Joomla! 1.6 -->
<languages folder="langfiles">
        <language tag="en-GB">en-GB.com_example.ini</language>
</languages>
I believe this is the current way.


Plugins and Modules
To streamline the process for large components with non optional plugins/modules there should be some kind of auto installer just like languages. Ive seen components developers cook up their own way of doing this in the install script, but its a common need to have a mass extension install.

Ive been out of the installer development process for a while and may have missed something, Is there a standard way of doing this (didnt see one while debugging)?

Standard way is the package type to create a package of multiple extensions.

Best regards
Rouven

reynaldo celaya III

unread,
30 Aug 2012, 00:04:1530/08/2012
to joomla-...@googlegroups.com

Standard way is the package type to create a package of multiple extensions.

Thanks, found documentation here just incase anyone else wants to take a look.

http://docs.joomla.org/Package


Reply all
Reply to author
Forward
0 new messages