2

I cant't able to find a Joomla help page explaining how a library type extension can be installed.

Joomla Manifest Files

I refer the above URL and don't find any further explanation on library files.

Can someone explain how to create the library extension so that it can be installed via Joomla installation manager.

1 Answer 1

4

Create a folder structure like so:

/my_library.xml
/my_library
  file_1
  file_2
  etc

Then in your my_library.xml file, add the following

<?xml version="1.0" encoding="utf-8"?>
<extension type="library" method="upgrade" version="3.4">
    <name>My Library</name>
    <libraryname>mylibrary</libraryname>
    <author>Malaiselvan</author>
    <creationDate>September 2015</creationDate>
    <copyright>Copyright (C) 2015</copyright>
    <license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license>
    <authorEmail>[email protected]</authorEmail>
    <authorUrl>www.example.com</authorUrl>
    <version>1.0</version>
    <description>Some description</description>

    <files>
        <folder>my_library</folder>
    </files>
</extension>

Once all is done, zip everything up and install it like you would any other extension.

Hope this helps

1
  • Thanks. It works great. Can you please let me know how the language file can be used? I do not want to hard code the name author name etc... Sep 21, 2015 at 21:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.