Reputation: 67
I want to create a basic joomla component for some custom functionalities. I already followed Create component in joomla
But its not working for me. Its showing: Warning: JInstaller: :Install: Can't find Joomla XML setup file. Error: Unable to find install package
Please Help me...Thanks
Upvotes: 2
Views: 128
Reputation: 3485
You have created xml file with this
<?xml version="1.0" encoding="utf-8"?>
<install type="component" version="2.5.0">
<name>cust</name>
<creationDate>2016-06-07</creationDate>
<author>cust</author>
<authorEmail>[email protected]</authorEmail>
<description>This is bhaskar Page Joomla Component</description>
<files folder="site">
<filename>cust.php</filename>
</files>
<administration>
<menu>Custom Event</menu>
<files folder="admin">
<filename>cust.php</filename>
</files>
</administration>
</install>
Whereas it should be
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.5.0">
<name>com_cust</name>
<creationDate>2015-05-13</creationDate>
<author>cust</author>
<authorEmail>[email protected]</authorEmail>
<description>This is bhaskar Page Joomla Component</description>
<files folder="site">
<filename>cust.php</filename>
</files>
<administration>
<menu>Custom Event</menu>
<files folder="admin">
<filename>cust.php</filename>
</files>
</administration>
</extension>
You have to use "extension" for Joomla 3 xml files instead of "install" which was used till Joomla 2.5. List of changes made in Joomla from 1.7 to 3.4.7 version is listed here
Upvotes: 1
Reputation: 303
It is a little bit typical to create component by read doc. It need to much effort in component creation. some time i use the below site by which we can create component.
https://www.component-creator.com/en/
But remember if you want to only create component then it is fine. But for learn you need to read Joomla doc properly.
Upvotes: 0