Frontpage General Information Include Any Module Within Content in Joomla 1.5!

Include Any Module Within Content in Joomla 1.5!

PDF Print

One of the frequent questions that we receive at Joomlaspan is "How can I include your AdSense , AdBrite *, and Paypal * modules within the content of Joomla 1.5?" 

We have given individual customized answers to many users, but this article will make it very clear and accessible to everyone.

Let's take one example, our . This can be placed in any module position of the template by default, but not within content. This tutorial shall now explain how to enable it (or any other module) within content in Joomla! 1.5.

STEP 1: Create a new copy of the Module just for in-content use.

Create a copy of the Joomla module

Extensions > Module Manager. Check the checkbox before the module in question and click on "Copy" on the top right (see image).

The copy is placed just under the original in the same module position and is unpublished by default. It will be named "Copy of ...".


STEP 2: Open the Module that you just copied.

Edit the POSITION of the Joomla moduleNow just click on the name of the module (Copy of ...).


STEP 3: Change the "Module Position"

Here, we are going to do something very sleek. With the module opened, look at the left side of the screen. You will see a parameter named "Position". It will have a dropdown combobox in front of it. Joomla! developers have hidden a truly powerful option here. It is "editable". See picture on the right to get a clear idea. So what? Read on...

Let's edit the position name and "create" a new unique position just for in-content use, which will not be shown on the template elsewhere. Do not click on the arrow, but click directly within the textbox of that field and "delete" the content (using delete or backspace key). Now type a new name, let's say content_adsense125 (You can type any name you want, but this to me means that I am using this for showing AdSense ads, 125x125 size for in-content use).

Look at the next picture below for what it will look like. After making the other necessary changes to the module parameters on the right side, "Save" the module. This will now be saved in the "new" position that you just created.As it is a custom position, it will not show on the frontend. That was our purpose too, we want it to show only within content and only where we assign. See the right side ads for an example.

Edit the POSITION of the Joomla module

STEP 4: Go to the Plugin Manager

Change the Load Module Plugin ParameterExtensions > Plugin Manager. Look for a plugin named "Content - Load Module". Open it. On the right side, you will see a dropdown box. Click on its arrow and select "No wrapping - raw output" as shown in the next picture. 


STEP 5. STEP 6, STEP 7...

Open your content item within which you want to show the module. In the desired location within the article, just type

LOAD the module now

where"loadposition" is a constant to call the plugin that we just edited in step 4 and "module" is the variable module position to be called, in this case we should change it to content_adsense125 as done in step 3. As indicated above, change only the blue text and leave the red untouched.

Just one word of caution, do not use standard positions like "left" or "user1" inside content. They may load ALL the modules in that position into that content.

From now on, you should be able to place any module in any content of your choice.  Please let us know if you get into any trouble with these steps. We will be glad to help.


Hits: 335481
July 08, 2008

Thanks for the excellent tutorial on including modules in content. In fact, I was searching for how to create more module positions in Joomla 1.5, as I could not see it in the usual place under templates as in Joomla 1.0. Very sleek, true. But I wonder why it was 'hidden' in the first place...

July 08, 2008

Yes, the Joomla 1.0 option for module position creation was much more obvious. Anyway, this is even more 'convenient' the moment you know that its there :)
Another way of adding module positions is by adding a 'position' to the template's xml file, but that's messy.

July 09, 2008

Thanks! Nicey article. Now, my AdSense ads will be in the middle of articles too... :)

July 09, 2008

Thank you! This is one of the BEST Joomla! tutorials that I have read in recent times, not just for the tip/content, but also for the style. Keep writing...

July 09, 2008

I found two very useful articles on your site! One is this and the other on recovering super admin status for joomla bacend. Of course, in adition to the Adsese module :)

July 09, 2008

Thank you for your appreciation. If you have any specific tutorial requests, please do write to us using the contact form above and we will certainly consider writing that soon.

July 13, 2008

This sounds great, but I am stuck on the last step. Do you need to specify a position? I typed in in the html panel of an article, and it shows up as text instead of a function. Also, how do you link that to an adsense ad? Thanks for advice to a Joomla newbie!

July 13, 2008

: Okay, you have typed the loadposition code as in step 5 above. But do you have a module configured there? You need to do what is mentioned in step 3.

July 14, 2008


July 15, 2008

The content module disregards the content position created and uses left module position. Any ideas to correct? I copied a banner module to insert.

July 15, 2008

I sorted the problem out and now have adsense, affiliate code all working in the manner set out in tutorial. Thank you for this great tutorial!

July 19, 2008

Hey Galip808 - i'm having the same problem as you - in that the module displays to the left position - how did you correct for it?

My issue is that i want the module to use up 2 positions (user1 and user2) so that it is "justified" in the article content area.
Any ideas would be greatly appreciated (and thanks for such a great tutorial!!)

July 20, 2008

Skareqrow, my banner module in the content, for some reason, conflicted with a text banner module in the left position. I trashed the text banner module and my content banner positioned correctly. Hope it helps.

July 20, 2008

ah i c,

ok - your problem seems to be slightly different from mine. I guess a better way to phrase it would be: Can we format the module to align/display as either left, center or right within the article?

Thanks again

July 21, 2008

I typed the loadposition phrase and centered it using my WYSIWYG to achieve what skareqrow wants to do. Of course you can center or position it in many other ways too.

July 22, 2008

i tried using the WYSIWYG editor before i posted earlier and couldnt get it to work. I figured that would be the most logical way to position a module within an article - but it doesnt seem to be working. Any other ideas guys?

July 28, 2008

That's awesome! Thanks! Was looking for a way to display an upcoming events module in my front page content... works like a dream. :-D

August 09, 2008

thanks for this awesome tutorial.. Found exactly what i was looking for.. Being able to place ads next to the articles makes more sense.. :)

August 31, 2008

Great article. I am using this to put a "related items" module floating in a div to the right of my content items. The problem I'm running into is I'm getting no module title. Any ideas from anyone?

September 16, 2008


awesome tutorial.

I used it in conjunction with the flash menu module and it works a treat on the front page article:

peter haken
September 21, 2008

Great tutorial, worked very well i just forgot to publish copy of modual. great thanks very much 5*****

Priya Ranjan Panigrahi
September 26, 2008

really awesome tutorials

September 26, 2008

thank you for this solution. it worked!

September 27, 2008

i have it working except I can't get the content text to wrap around the ad. i tried all the styles with no luck. any suggestions?

September 29, 2008

This is such a fantastic tutorial (best I've seen yet), that I am feeling a little silly.

It's not working for me :(. When I add {loadposition module) in the article or module, that line just appears in the text. What am I missing?

September 29, 2008

great tip..
one can you wrap the text around the ad..
the float parameter no?
cant seem to get it to work

please advise.

October 08, 2008

Thanks for the tutorial. But, I think you missed to include that the Module Menu assignment should be set to all. :)

October 14, 2008

I've looked at many other sources to explain this, and this is the only one I found that did it simply, effectively, and completely. Others always had something missing. Thank you for this.

October 17, 2008

Thank's, that's helpful tuto

October 19, 2008

too bad I didn't read this before I spent money on a mod to do this

thank you

grateful noobie
October 21, 2008

Thanks so much for this great tutorial. I was struggling for ages with no luck but you saved hours of heartache.


Nikola Janicijevic
October 30, 2008

Good remark. Thanks Rubie!

November 09, 2008


thankyou so much! this is a simple solution to a simple problem. I've been trying to find this solution for some time! Google needs to move you up the rankings

Saima Sund
November 12, 2008

Thank you for a good tutorial. I have a problem with the Flash module. Should the Loadposition also work with Joomla Flash module?

John G
December 30, 2008

My bad. It works perfectly.

Our webhosts test server was way behind on updates and they were only up to Joomla 1.5.3.

When I tested it on another server running 1.5.8 it worked like a charm.

max Olivier
January 04, 2009

Hi guys. Thanks so much for your stuffs. I use your Google ad Module click safe: super Great.
I have been looking for a while at Include Any Module Within Content in Joomla 1.5!...What happened to: buy now ... ( for example a big buy now link at the end of the article here)...
Well let me look around again and try to buy it... Cheers

January 05, 2009

Great WORKS! really great I solved a great problem! Thanks a lot!
This is the way a tutorial has to be written!

January 24, 2009

Great tutorial, exactly what i have been looking for, thank you so much :)

March 03, 2009

Very nice and easy to follow tutorial, except I seem to be the only one who commented that can't get it to work for me :/

March 07, 2009

this is very helpful i used this with some plugs to hide content and in the same time show the login form so when GUST user click to see the article there will be a message saying that they have to register or login , and of course to make it more easier to users the login box was just right there as a module inside an article

April 01, 2009

Thats great, but is there a working solution for a big site where it just cannot be done manually for each piece of content? ;)

April 03, 2009

excellent - very detailed and easy to follow! the only thing i would add is how to change alignments, floats (as others have raised questions)... it is very simple just modify the Div CSS codes under Module Parameters when you are editing the module (Step 3). for example: use float:right; for text to wrap around it on the left or align:left; to make sure that it is left justified (and so on...)

April 08, 2009

awsome tutorial..... you saved me a lotta hard work.......... keep up

April 10, 2009

...just modify the Div CSS codes under Module Parameters when you are editing the module (Step 3). for example: use float:right; for text to wrap around it on the left or align:left; to make sure that it is left justified

In practical terms: Where and how do you do this?

May 13, 2009



bob ahmed
May 17, 2009

can we add posiiton for adlink?
it seem we have 2 model adsense in content.

May 17, 2009

It is very interesting to watch AOL transforming slowly but steadily into a content-oriented company more than anything else after serving as ISP and search engine for years. But I think there’s nothing wrong with it and it is only good to see the company restructuring the business to sexy lingerie accommodate for the most successful activities and only supporting the least successful ones to the extent that is needed to maintain the minimum required presence.

May 18, 2009

its a great tutorial . keep it up
it saved lot of time.

May 22, 2009

I've searched all over the place for a clear, concise description on how to insert AdSense into Joomla articles. I confess that I never did think about creating a position. I will bookmark your articles just to review techniques that may come up from time to time. Again, Thanks!

May 22, 2009

Thxx for sharing this great Tip you made my day :D Keep it up

May 26, 2009

very cool. I was searching for this for a long time. THANK YOU!

May 28, 2009

I report that this modul not compatible with mxcomment 1.09
After Installing mxcomment 1.09 my google adsense disappear

June 15, 2009

WOW Amazing

thanks, thanks and thanks

June 16, 2009

it is very simple just modify the Div CSS codes under Module Parameters when you are editing the module (Step 3). for example: use float:right; for text to wrap around it on the left or align:left; to make sure that it is left justified


being driven crazy trying to simply get a text wrap...
please explain how to do a this! Or a link to an article explaining in more detail...

July 12, 2009

Great Information. Its Very Usefull

leon lumsden
July 13, 2009

it is very simple just modify the Div CSS codes under Module Parameters when you are editing the module (Step 3). for example: use float:right; for text to wrap around it on the left or align:left; to make sure that it is left justified


please help me too!!!!

July 24, 2009

Thanks for this excellent tutorial, and to test_guide for the wrap thing!
To leon and similans: look for the "div CSS codes" field just above the one where you inserted your publisher ID. Replace the text-align:right; default value by e.g.
float:right; margin-left:20px;
... or whatever suites your needs. This will do the work.

October 01, 2009

Зашибись! Молодцы, товарищи!

October 02, 2009

Carefully followed instructions but nothing appears on the page. Checked all and tried again. no luck. [I tried it with and without a module class suffix.]
Disabled other similar modules, still no reuslt.
Help please

December 24, 2009

it is very simple just modify the Div CSS codes under Module Parameters when you are editing the module (Step 3). for example: use float:right; for text to wrap around it on the left or align:left; to make sure that it is left justified


please help me too!!!!

Here's how. In the backend, go to the Module Manager (under Extensions). Select the module you created the new position for (i.e., content_adsense125, or whatever you named it). Double-click it, or select it to Edit. On the right hand side you will see "Module Parameters." There you will see "Div CSS codes." Change the default "text-align:center" to float:right or float:left. In another window go read the article and see the new alignment. Adjust the Div CSS code til you get what you want.

December 25, 2009

Hello mate, thanks for this tutorial.

I'm having some problems:
I get such an error:

Fatal error: Call to undefined function rok_isie()......

January 08, 2010

I am following the instructions to get the text to 'wrap' around the module, but when I go the 'Module Parameters' there is no 'Div CSS Codes". How do I get that option to come up??

January 08, 2010

Thanks for the excellent article.
I succeeded in putting a login form in an article that I want to open an article on successful login. However when I go to set the Login Redirection "page" the only options are Menu Items.
This produces the ridiculous situation of having to have a menu item with no login to redirect to.
Advice would be much appreciated. I'm using Joomla 1.5.15

Nathan Maggard
January 21, 2010

Perfectly worded, awesome tips. Thank you x3

All the best,

Nathan Maggard

January 24, 2010

thanks a ton man... if i were gay... i'd have kissed u...

Khushal Nishad
January 25, 2010

thanks for your tutorial

January 27, 2010

Thanks a lot =) great tutorial! saved me a lot of time. thanks very much.

Mihai Cazac
January 29, 2010

Great tutorial. Congratulations!
I will use it to put in articles javascript code from "Joomla 1.5 HTML Module". But I have to have a different module for every script I have. Is there a possibility to have all scripts in a module, defined as functions, and to invoke the desired function from the module writing something like this: ?

February 09, 2010

Thanks for the quick tutorial, really works

February 11, 2010

Excellent information. Thanks for sharing!

Would you like to write a comment or review?

More Articles in This Category
© 2006 - 2013 Joomlaspan • Powered by Joomla! 1.5 • Privacy Policy