My Clean PC: New Remote Desktop Service!

MPA Computers now offers a new
& easy remote desktop service, eliminating the hassle of drop offs and scheduled appointments!
Read More...

Sign up for our newsletter!

Name
Last Name
Email
Prefix
Suffix
Fax
Phone
Business
Address 1
Address 2
City
State
Zip

We appreciate your feedback!

busyLoading Poll...

Casey's Pizza Contest

Don't give up yet!

We're still giving away free pizza all the time, and it just takes 60 seconds to sign up! So what are you waiting for?

SIGN UP NOW >

Wondering how to include a module position within another module position in Joomla 1.5? A content item is easy, but a module? Here's the answer: Let us know how you apply it.

I just encountered an issue on this very website where I wanted to include a Joomla module within an existing Joomla module. This functionality was present in Joomla 1.0x but is not in Joomla 1.5. This is likely because the Joomla 1.5 structure does not load plugins into modules. After doing some research, I noticed others were asking the same question but with little return in the form of answer. Thus I decided to do some digging and figure out how to make it work. Luckily, it turns out to be a pretty easy and straight forward process. 

UPDATE: I recently discovered a free plugin that will make this process even simpler! It's called Modules Anywhere -- I have not yet personally tested it but it has strong reviews and most users seem to be getting along just fine! Download it here! If you like it,don't forget to make a donation to support the developer.

Assuming that you have two (or more) modules, and you would like to include one or more of these modules inside the other. Here's how you do it!

  1. First, download and install Sourcerer. It's a module/plugin for Joomla 1.5 that allows you to include PHP code ANYWHERE in Joomla. Additionally it has a nifty module feature that we'll be using. Grab it here: http://www.nonumber.nl/sourcerer 
  2. Install Sourcerer. You'll need to start by unzipping the archive. After unzipping the archive, you are left with 3 files: One module and two plugins. Install all 3. (Go to Extensions > Install/Uninstall)
  3. Next, publish both plugins. Go to Extensions > Plugin Manager.  Now locate: "Editor Button - Sourcerer!" and "System - Sourcerer!" and publish both. You do not need to change any of the paramters for either.
  4. Now go to Extensions > Module Manager. You should have two (or more) modules and you would like to include one or more of these modules inside the other. Make a note of the ID's of the modules you would like to include together. I.e. 45 and 50. The ID column is the one on the far right. You could also use the module title, but since this is subject to change, I recommend you use the module ID so that you don't run into problems down the road.
  5. Next, locate the Sourcerer module and click on it. This special module does the work of including the plugin into the module. The way Sourcerer works is to allow you to include PHP or JS inside thephp or JS heresyntax.  Because Joomla 1.5 won't allow us to include plugins in Modules, this syntax doesn't work in any standard module. Thus we need to use the Sourcerer Module to include our PHP/JS or Module Positions. The Sourcerer module is essentially a Custom HTML module -- with this one additional ability. So don't fret, you can still accomplish exactly what you want.
  6. Now scroll down to the editor. Enter this code to include a module:
    {module ID or Module Name Here}
    Here's what mine looks like:
    <div style="float: left">{module 45}</div>
    <div style="float: right">{module 50}</div>
    Note this allows you to use HTML. Thus, if you wished you could include one module, (such as a menu) and then add your custom HTML code instead of including a separate module that included this HTML. For simplicities sake, I prefer to just include both modules into this one module. Note you're including a single module (the one assigned to ID 45, and 50, in my case) and not a module position. In an article, you can include a module position using - but this won't work within a module. Hence the work around.
  7. Publish the Sourcer Module into the position of your choice. Save!
  8. Return to Extensions > Module Manager and UNPUBLISH or change to a hidden position the two modules you just included. This way they won't show up twice. Unpublished modules will still show up in the Sourcerer Module. 
  9. That's it! You've now included multiple modules into one. If you need to do this more than once on your site, just copy the sourcerer module and repeat!
Now that we're all done, you might be asking yourself... Great, but WHY would I want to do this? Perhaps if you wanted to include a true Joomla menu, plus some additional custom content. A good example is the bottom of this page. You'll notice I have some links to the left (which are a menu) and some Social Bookmark icons to the right. The only other solution would have been to modify the template and add another un-needed position. 
 
I hope this has been helpful -- I appreciate your comments and feedback, so feel free to leave your thoughts or suggestions below.

If you LIKE this, we'd LOVE for you to SHARE!

Hits: 13619
Comments (21)add comment

BEVERLY30DALE said:

reply this topic
I had got a desire to begin my company, nevertheless I didn't have enough of money to do this. Thank heaven my colleague told to take the loan. Hence I took the consolidation loans and made real my desire.
December 22, 2011

David Birchmier said:

Glad to hear it, Edwin!
I'm glad to hear you got it figured out Edwin. Just let me know if you need anything else.

As for Tido:
You are likely downloading a newer version of Sourcerer. I wrote this article back in '09 and things have changed since. Check out the update at the top of this article regarding Modules Anywhere, as it may be a better fit for you.

Alternatively, just look for an older version of Sourcerer on their website -- pretty sure it's still available!
May 19, 2011

edwin said:

I figure it out
you have to make a new custome module and type the code {module X} and it works thank you.
May 19, 2011

edwin said:

I dont see the module
I installed sorcerer but don't see the module can anybody help me.
May 19, 2011

Christy Turlington said:

Reply
Thanks for the information. This is a wonderful post!!
thesis writing
essay format
December 02, 2010

tido said:

not working!!!!
none of these programs come with there modules only the plugins. am i doing something wrong?
November 28, 2010

JensenEmily20 said:

reply this post
If you are in not good state and have no money to get out from that point, you would require to receive the loans. Because that will help you definitely. I take college loan every year and feel myself good because of this.
August 15, 2010

scGrace said:

Re
Thank you a lot for the really good topic close to this topic. Can you aid to detect the thesis writing or an experienced dissertation service to purchase the dissertation subject in?
January 07, 2010

John said:

Can't find the module!
I successfully installed the plugin, but can't find the module! I can see the Editor & System under plugin, but no module, how
do I make this work, please help. Thanks.
December 03, 2009

David Birchmier said:

Hey Danny -- Let me help
Thanks for the feedback Danny. I'd love to help, but unfortunately am getting a little lost as to what part of the instructions you're having trouble with. This guide describes how to load TWO modules into one single module, which is something sourcerer doesn't do on its own. That's why there are additional steps/the sourcerer website doesn't give a direct example.

Perhaps you might try the other option in the first part of the blog -- others seem to be having good luck with it.

Otherwise, clarify your issue and I'll be glad to help!
October 29, 2009

DAnny said:

This doent work?
Not only does it not work, on the website for "modules anywhere", there modules are loaded in article content lol. this uses

© 2011 MPA Computers. All rights Reserved. | Website Developed by MPA Computers. | Hosted by MPA Hosting.

! Help
October 28, 2009

David Birchmier said:

Hey Beto
Was the installation for the Sourcerer module successful? (The one you downloaded from: http://www.nonumber.nl/sourcerer)

If it failed, what was the error?

If it was successful, make sure to check multiple pages. Many times you'll have more modules that will fit on one page, and the remaining ones will show up on page 2, page 3, ect.

Let me know if this helped!
August 23, 2009

Beto said:

Can't find the Sourcerer Module
Hi guys... i didn't find the sourcerer module on my modules maganer...
August 23, 2009

David Birchmier said:

Thanks!
Thanks you to everyone for their comments! Glad to hear this tutorial was able to help you out!

Also, thanks to Petervan for updating me with his great extension. I've updated this blog to link to it!
August 12, 2009

Peter van Westen said:

Modules in modules and anywhere else...
Some time ago I created Modules Anywhere with which you can place modules in modules!
August 03, 2009

Andrew said:

this doesn't work anymore, in new version, so stop looking! but there is hope!
if you go to the site and select the "upgrading to v2" tab it explains how this technique no longer works, but it has a link to

http://www.nonumber.nl/modulesanywhere that should work
July 16, 2009

David said:

module in custome module
This is what I have been looking for. I tried the normal {loadmodule position} and keep getting the entire text itself. Then, I kept viewing the forum and found this solution suggested by someone else who was looking for the same solution. For any one who wants to see a demo, see it at the bottom half of all the pages at Drugzoo.com by clicking HERE.
Thanks Developer.
June 05, 2009

Gary Hutton said:

What a great workaround.
This fix worked just as described. Thanks.
May 23, 2009

Jason said:

Amazing
This is perfect! Worked the first time... No Problems!!
May 07, 2009

David Birchmier said:

Your welcome!
No problem at all -- glad to hear it worked for you!
April 27, 2009

Shuja said:

Thankyou
After a long quest i was able to load two modules within one module. It was easy through your guide lines
Thank you Dear
April 27, 2009

Write comment
smaller | bigger

busy