In Joomla, modules are placed in positions, and those positions are defined by your template. If needed, you can however put a Joomla 2.5 module in an article. In this tutorial, we're going to place the Search module in one of our test articles.

This tutorial is just one of many tutorials we have on working with extensions in Joomla 2.5. For example, in our last extension tutorial we showed you the steps on uninstalling extensions in Joomla 2.5.

To put a Joomla 2.5 module in an article:

  1. Log into your Joomla 2.5 Dashboard
  2. In the top menu, hover over Extensions and click Module Manager
  3. Use the filter feature to find the module you want to put in an article, and then click the module
  4. Type in a new position name (one that won't conflict with any positions used by your template). In our example, we typed in in_article_search
    type-in-a-new-module-position
  5. Under Module Assignment, select the pages you want to assign the module to. Then click Save.
  6. Open the article for edit you want to place the module in, and put in the following text:

    {loadposition myposition}

    Be sure to replace myposition with the position you created earlier. In our example, we typed in:

    {loadposition in_article_search}
    type-loadposition-in-an-article
  7. Save your article and then test your website. You should now see a module in a Joomla 2.5 article.
    we-have-placed-a-module-in-an-article

    Note: In order for the steps above to work, the Content - Load plugin needs to be enabled. It should be enabled by default, but if you have any trouble with placing a module in an article, make sure it is enabled.
    plugin-content-load-modules-is-enabled
You are viewing Section 10: Joomla 2.5 - Put a Module in an Article
Section 9: How to uninstall an extension in Joomla 2.5
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Joomla Community Google+ Hangout #3

June 3rd, 2014

Thank you @RustyJoomla for letting me speak on the Joomla Community Google+ Hangout!

Click here to watch!

2014-01-22 3:14 am
Modify step 6 use this {loadposition modulename}
use module name instead of position.
n/a Points
2014-03-08 5:21 am

Hello,

I have tried to use Unite Nivo Slider to show a slideshow in a specific position on my homepage, folllowing your instructions.

Unfortunately, it doesn't show the slideshow there, only the 

{loadposition life_slides}

I can see there.

 

Staff
9,942 Points
2014-03-10 10:22 am
To use this, be sure that you have the correct position defined within your module settings, as well as have that module enabled.
n/a Points
2014-04-08 4:37 pm

so I assume it is poassible to add more than one module into a single article?

Staff
18,399 Points
2014-04-08 5:00 pm
Hello Matt Woodrum,

Yes, you can have multiple modules in different positions in the article. You would need to take into account things are displayed on the page of course.

Regards,
Arnel C.
n/a Points
2014-04-09 11:54 am

I am also having an issue with The accordion feature, I love it but anytime I go to a page where I have added it, the first one is always expanded? Using the yoovista template. Is there a way to stop it from expanding automatically? Can the colors be changed?

Staff
9,942 Points
2014-04-09 12:16 pm
Could you clarify what specific module you are using? Could you show us your site so that we could further look into it?
n/a Points
2014-04-09 12:43 pm

sure.. yo can use this link as an example: Removed for privacy

Staff
18,399 Points
2014-04-09 1:30 pm
Hello Matthew,

This is an easy fix! You will need to go into the code and look for your div statement that looks like this:

<div id="collapseOne" class="panel-collapse collapse in">

If you remove the word "in" at the end of the statement, then it will start off in the collapsed state.

Please let us know if you require any further assistance.

Regards,
Arnel C.
n/a Points
2014-04-09 2:35 pm

Thanks Arn, Just one problem...can you direct me to the code for the accordoin it's self? I see the html for the content but not for the actual widget

Staff
18,399 Points
2014-04-09 4:04 pm
Hello Matthew,

I took a closer look at your code and I found some differences with what I've typically used for collapsible sections. It appears you're using a WidgeKit to do this. Which has a manager, but the documentation is not very good (if this is what is being used on your webpage). Basically, it appears to be using jquery to make the accordion work. You would need to find the code for the jquery accordion. Use this link for more information on the issue:

Stackoverflow- Jquery accordion collapsed.

The method I use utilizes Bootstrap (which comes loaded with Joomla these days). The code is very simple and can be implemented with your article's html. Here's the documentation on it:

Bootstrap- javascript: Collapse

One way to solve the problem is go back into your article and use this method (Bootstrap is available in Joomla 2.5). However, if you'd rather go into the Jquery code, then it should be no problem.

Please understand that this is all third party for which we typically provide no support, so, if you're trying to do something more, then you may want communicate with the author of the Widgekit. They would likely be able to either provide specific instructions on modifying their code, or advice on handling any further queries for functions that are related to their addon/plugin.


I hope this helps to resolve the problem!

Kindest regards,
Arnel c.

n/a Points
2014-04-09 4:17 pm

Awesome, Thanks So Much 

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

12 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!