How can I use a Module for more than one Website
Moderator: joomlalearn
-
- Joomla! Apprentice
- Posts: 9
- Joined: Thu Jun 02, 2011 4:26 pm
How can I use a Module for more than one Website
Hi
I've created a custom module for Joomla 2.5, and I'd like to use this module for a few sites, but I don't have any experience at this area.
Could you please give a direction to sort out this problem.
Regards,
Saeid
www.bazarlondon.com
I've created a custom module for Joomla 2.5, and I'd like to use this module for a few sites, but I don't have any experience at this area.
Could you please give a direction to sort out this problem.
Regards,
Saeid
www.bazarlondon.com
- muddauber
- Joomla! Ace
- Posts: 1618
- Joined: Thu Jun 08, 2006 11:26 pm
Re: How can I use a Module for more than one Website
Here is some documentation on creating a module.
http://docs.joomla.org/How_do_you_creat ... _module%3F
http://docs.joomla.org/How_do_you_creat ... _module%3F
-
- Joomla! Intern
- Posts: 69
- Joined: Wed Mar 13, 2013 12:22 pm
Re: How can I use a Module for more than one Website
Go to Administrator > Extensions > Template Manager > Options > Global Configuration for Templates > Preview Module Positions set Enabled.
View all modules positions by adding ?tp=1 to the end of your URL such as http://example.com/index.php?tp=1.
If you need to add more position then you should work on index.php & xml file in your template folder.
View all modules positions by adding ?tp=1 to the end of your URL such as http://example.com/index.php?tp=1.
If you need to add more position then you should work on index.php & xml file in your template folder.
-
- Joomla! Intern
- Posts: 69
- Joined: Wed Mar 13, 2013 12:22 pm
-
- Joomla! Intern
- Posts: 69
- Joined: Wed Mar 13, 2013 12:22 pm
Re: How can I use a Module for more than one Website
Take look at this link also:
http://www.techguywebsolutions.com/crea ... odule.html
Hope those links help you...
http://www.techguywebsolutions.com/crea ... odule.html
Hope those links help you...
- subrat
- Joomla! Ace
- Posts: 1038
- Joined: Sat Jul 08, 2006 7:36 am
- Location: India
- Contact:
Re: How can I use a Module for more than one Website
cant you just zip the files from the current website, correct the xml file if its not set properly and install like any other module on your other sites?
-
- Joomla! Intern
- Posts: 69
- Joined: Wed Mar 13, 2013 12:22 pm
Re: How can I use a Module for more than one Website
You can not do that, becuse all codes for position are in index.php of your template.
-
- Joomla! Intern
- Posts: 69
- Joined: Wed Mar 13, 2013 12:22 pm
Re: How can I use a Module for more than one Website
see below example:
file > templateDetails.xml
......
<positions>
<position>position-1</position>
<position>position-2</position>
<position>position-6</position>
<position>position-7</position>
<position>position-14</position>
</positions>
....
NOW see the index.php:
...............
<?php if($this->countModules('position-2')) : ?>
<div id="pathway" >
<jdoc:include type="modules" name="position-2" />
<div class="clr"></div>
</div>
..............
file > templateDetails.xml
......
<positions>
<position>position-1</position>
<position>position-2</position>
<position>position-6</position>
<position>position-7</position>
<position>position-14</position>
</positions>
....
NOW see the index.php:
...............
<?php if($this->countModules('position-2')) : ?>
<div id="pathway" >
<jdoc:include type="modules" name="position-2" />
<div class="clr"></div>
</div>
..............
-
- Joomla! Intern
- Posts: 69
- Joined: Wed Mar 13, 2013 12:22 pm
Re: How can I use a Module for more than one Website
After changing the templateDetails.xml
you need to change the index.php in your template folder.
and if you use any class or id you have to chnage or add new code in css file also.
you need to change the index.php in your template folder.
and if you use any class or id you have to chnage or add new code in css file also.
- subrat
- Joomla! Ace
- Posts: 1038
- Joined: Sat Jul 08, 2006 7:36 am
- Location: India
- Contact:
Re: How can I use a Module for more than one Website
@jommfoss, I am not sure if I understand clearly, as per uksaeed, he has created a custom module and wants to use that module in other sites too. If that is the case then do you need to edit the template index file to install a new module?
-
- Joomla! Intern
- Posts: 69
- Joined: Wed Mar 13, 2013 12:22 pm
Re: How can I use a Module for more than one Website
Hey Subrat, i think you are right
I follow the last post & did not mention the first question
as uksaeed said, should zip all files & install it by backend. If the module codes/files are fine then the module will work properly.
see this link: http://www.inmotionhosting.com/support/ ... l-a-module
I follow the last post & did not mention the first question
as uksaeed said, should zip all files & install it by backend. If the module codes/files are fine then the module will work properly.
see this link: http://www.inmotionhosting.com/support/ ... l-a-module
-
- Joomla! Intern
- Posts: 69
- Joined: Wed Mar 13, 2013 12:22 pm
Re: How can I use a Module for more than one Website
Tnx @subrat for notice that