Is there a standard set of tags covering file types for the xml installer?
While trying to make my own component I've read through every ( yes every )other components install xml file and there is no real standard.
Some I have seen like so...
Code:
<files>
<filename>index.html</filename>
</files>
<images>
<filename>image.jpg</filename>
</images>
others include files in the image tags like this... ( as well as in the admin part)
Code:
<files>
<filename>index.html</filename>
</files>
<images>
<filename>image.jpg</filename>
<filename>folder/index.html</filename>
<filename>folder/index.php</filename>
</images>
Ok, and then we get into what we want installed into the administration/components area and this is where I have problems.
If I have a directory in the administration/components/com_mycom/
called 'js' and it has all my javascripts in it, do I install it like this?
Code:
<?xml version="1.0" ?>
<mosinstall type="component">
<name>mycom</name>
<creationDate>20.09.2004</creationDate>
<author>Me</author>
<copyright>Copyright in here</copyright>
<authorEmail>me@mycom.com</authorEmail>
<authorUrl>http://www.mycom.com</authorUrl>
<version>1.0.0</version>
<description>My boring component</description>
<files>
<filename>index.html</filename>
</files>
<images>
<filename>image.jpg</filename>
</images>
<install>
<queries>
<query>CREATE SOME TABLES</query>
</query>
</queries>
</install>
<uninstall>
<queries>
<query>DROP SOME TABLES</query>
</queries>
</uninstall>
<installfile>install.mycom.php</installfile>
<uninstallfile>uninstall.mycom.php</uninstallfile>
<administration>
<menu>My Component</menu>
<files>
<filename>index.html</filename>
<filename>about.php</filename>
<filename>index.php</filename>
</files>
<images>
<filename>images/index.html</filename>
<filename>images/image.jpg</filename>
<filename>images/icons/index.html</filename>
<filename>images/icons/icon.png</filename>
<filename>js/index.html</filename>
</images>
<js>
<filename>js/file.js</filename>
<filename>js/file2.js</filename>
</js>
</administration>
</mosinstall>
This is basically what I'm trying to do without posting the whole however many hundreds of lines in the xml I'm using.
Thing is... I bet the one just above will install no probs but with a larger xml file with many more lines it has problems copying the admin stuff to the admin area.
The 'js' directory also only just works like the above install xml but the 'js' is only getting to the front component section and not getting copied to the admin area. The folders are being created though, in BOTH areas????
Without the 'js' tags it wouldn't move them at all. If I wanted the 'js' files in the front end of the component I could have included the files in some 'image' tags in that section of the xml without problems but this won't work to copy to the admin area.
My component IS installing, but the main group of files destined for the admin area are just not moving?
Pulling my hair out!
Any help please.