Members: 16,996
Threads: 38,831
Posts: 159,347
Online: 55

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etrackerŪ Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Development > Component Development

Reply
 
LinkBack Thread Tools Display Modes
Old 21.09.2004, 08:33   #1 (permalink)
Mamber
 
Join Date: Jul 2004
Posts: 57
sacr0 is on a distinguished road
Default component installer xml standards Help Please

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.
sacr0 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Component installer doesn't function anymore aabrouwer Component 'How Do I' Questions 10 14.01.2005 09:48
Component Installer didnīt workin anymore Oggy Mambo 4.5 General Talk 5 31.10.2004 20:09
Component Installer Help manuman Component Development 1 03.09.2004 21:30
Due install Component: Installer not found for element [] olsenclub Mambo 4.5.1 Bugs 5 29.08.2004 23:36
how can i get a component to add a Main Menu item? and XML spec sheet wanted kentu Component Development 2 30.07.2004 16:25


All times are GMT +2. The time now is 03:38.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.