The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Jan 26, 2012 3:25 am 
Joomla! Intern
Joomla! Intern

Joined: Thu Apr 28, 2011 9:01 am
Posts: 67
Location: Sephia Kingdom
hi!

i wanna know how to install component and module at the same time. I mean, how to code this? Is this something like only in xml file?

If you have the answer, please show me the code. I don't like links like "this might help". If you give a link might as well that it would really help.


~jaceejoef~

_________________
talent is the willingness to practice
http://entertainmentgames09.[URL banned].com


Top
 Profile  
 
PostPosted: Thu Jan 26, 2012 7:14 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Mon Sep 07, 2009 10:32 pm
Posts: 60
Location: Maputo, Mozambique
I not sure I understand your question.

What I know is that that are lots of components, that when you install them, they automatically install the respective modules and plugins!

_________________
Chuck Norris checks his closet for me , everynight


Top
 Profile  
 
PostPosted: Thu Jan 26, 2012 10:51 pm 
Joomla! Intern
Joomla! Intern

Joined: Thu Apr 28, 2011 9:01 am
Posts: 67
Location: Sephia Kingdom
oh yeah, i know that a lot of components automatically install their associate modules and plugins but what i want to know is how did they do or code it.

example, the artofuser component. when you look at its xml file, you can see that a plugin node was define there. so what i want to know how to do it with module

here's the xml code in artofuser component

Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: artofuser.xml 553 2011-01-18 23:15:07Z eddieajau $ -->
<install type="component" version="1.5.15" method="upgrade">
   <name>ArtofUser</name>
   <version>1.1.1</version>
   <creationDate>2011-01-19</creationDate>
   <author>Andrew Eddie</author>
   <authorEmail>info@newlifeinit.com</authorEmail>
   <authorUrl>http://www.theartofjoomla.com</authorUrl>
   <copyright>Copyright 2005 - 2011 New Life in IT Pty Ltd. All rights reserved</copyright>
   <license>GNU General Public License &lt;http://www.fsf.org/licensing/licenses/gpl.html&gt;</license>
   <description>COM_ARTOFUSER_DESC</description>

   <installfile>install/install.php</installfile>

   <administration>
      <files folder="admin">
         <folder>controllers</folder>
         <folder>help</folder>
         <folder>helpers</folder>
         <folder>install</folder>
         <folder>language</folder>
         <folder>libraries</folder>
         <folder>media</folder>
         <folder>models</folder>
         <folder>tables</folder>
         <folder>views</folder>
         
         <file>artofuser.php</file>
         <file>config.xml</file>
         <file>index.html</file>
         <file>controller.php</file>
         <file>version.php</file>
      </files>

      <menu img="components/com_artofuser/media/images/artofuser_16x16.png" link="option=com_artofuser&amp;view=users">ArtofUser</menu>

      <submenu>
         <menu img="components/com_artofuser/media/images/artofuser_16x16.png" link="option=com_artofuser&amp;view=users">Users</menu>
         <menu img="components/com_artofuser/media/images/icon_16_groups.png" link="option=com_artofuser&amp;view=groups">Groups</menu>
         <menu img="components/com_artofuser/media/images/icon_16_notes.png" link="option=com_artofuser&amp;view=notes">Notes</menu>
         <menu img="js/ThemeOffice/categories.png" link="option=com_categories&amp;section=com_artofuser_notes">Note Categories</menu>
         <menu img="js/ThemeOffice/categories.png" link="option=com_categories&amp;section=com_artofuser_blocked">Block Categories</menu>
         <menu link="option=com_artofuser&amp;view=loginhistory">Login History</menu>
      </submenu>

      <languages folder="admin/language">
         <language tag="en-GB">en-GB/en-GB.com_artofuser.ini</language>
         <language tag="en-GB">en-GB/en-GB.com_artofuser.menu.ini</language>
         
         <language tag="fr-FR">fr-FR/fr-FR.com_artofuser.ini</language>
         <language tag="fr-FR">fr-FR/fr-FR.com_artofuser.menu.ini</language>
      </languages>
   </administration>

   <plugins>
      <plugin plugin="artofuser" group="user" title="User - Artof User" state="0">
         <files folder="plg_user_artofuser">
            <filename plugin="artofuser">artofuser.php</filename>
            <filename>artofuser.xml</filename>
         </files>

         <languages folder="plg_user_artofuser/artofuser/language">
            <language tag="en-GB">en-GB/en-GB.plg_user_artofuser.ini</language>
         </languages>
      </plugin>
   </plugins>
</install>

_________________
talent is the willingness to practice
http://entertainmentgames09.[URL banned].com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 



Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group