News Feed E-mail

Get How-To's right in your inbox. Subscribe to the HowToJoomla! news feed e-mail. Just enter your email address here:

Delivered by FeedBurner

Login






Lost Password?
No account yet? Register

Affiliates

Azrul's JomComment
JoomlaShack
iJoomla
The Joomla! Store
Member of W3C Sites dot com
How to Display the Same Module in Multiple Positions PDF Print E-mail
Written by Cory   
Friday, 29 September 2006

A relatively new feature of Joomla! is the ability to display the same module in multiple positions, and varying it depending on which page you are looking at. For example, you might want to display the search module in the header position on home page, but you want it in the left position on each sub page. Here is a quick and easy way to accomplish this.

Step 1: Make a Copy of Your Module

For this example, I will be working with the "Search" module. Joomla! makes it easy to make a copy of each module. Just follow these steps:

1) Select the checkbox of the module you wish to copy in your module manager.

2) Click the "Copy" button in the toolbar.

3) Voila! You have copied your module!

You should now have a "Copy of Search" module listed in your module manager.

Step 2: Modify the Settings for Your Module Copy

Click on "Copy of Search" to modify its settings. The first thing you want to modify is the module position. In this case, our copy needs to go in the left module position.

The next thing we want to modify is the Menu Items for which our module will display. For this example, we want to display our copy in all pages but the "Home" page. To do this, select every menu item in the "Menu Items" except for the "Home" menu item. NOTE: Do not select "All" from the list, as this will cause the copy to display on every page, including the "Home" page.

Step 3: Modify the Settings for Your Original Module

This step is exactly the same as step 2 with a couple of exceptions. For this example, we want our original module to display only on the "Home" page in the "header" position. For this, you need to set the module position to "header", and only select the "Home" menu item in the "Menu Items" list.

You can modify this process to display the same module in as many positions as you want on as many pages as you want. It is strictly up to you. If you have any questions, please post them in the comments.

Trackback(0)
Comments (21)add comment
BTOS: ...
Finally a website with acutal screenshots to back up the prevelant confusing and infuriating jargon that frusrtated me from most of the other so-called tutorial sites. The print without visuals puts me into a coma. Finally I have confidence in my ability to get er done. PRESENTATION IS VERY WELL DONE. THANK YOU.
1

report abuse
vote down
vote up
September 29, 2006
Votes: +0
I'm glad you liked it. smilies/smiley.gif

I know the jargon can get confusing. Sometimes when you've been around Joomla! for a long time, you lose site of what is confusing jargon and what is language that the rest of the world understands. Thanks for that feedback. I'll try to keep this stie as jargon-free as possible. smilies/smiley.gif
2

report abuse
vote down
vote up
September 30, 2006
Votes: +0
Hiker: ...
Thank you very much.
This solution is so simple smilies/cheesy.gif
I think i looked over it.
Anyway thank you for helping and I really like your site. smilies/grin.gif
3

report abuse
vote down
vote up
October 27, 2006
Votes: +0
Allen Quinn: ... http://www.qeius.com
Great Tip. Thanks, Allen
4

report abuse
vote down
vote up
October 30, 2006
Votes: +0
You're welcome smilies/smiley.gif
5

report abuse
vote down
vote up
October 30, 2006
Votes: +0
I can't believe I missed how to turn various components on/off with the menu. Thanks for the visual! I saw this and literally jumped up and down and said, "that's how it works!". Thanks.

Jeff
6

report abuse
vote down
vote up
December 30, 2006
Votes: +0
John-Joseph: ... http://PowerProWeb.com
This is Coolness on Steroids !!!
7

report abuse
vote down
vote up
January 13, 2007
Votes: +0
This is Coolness on Steroids !!!


lol! I'm glad you liked it. smilies/smiley.gif
8

report abuse
vote down
vote up
January 13, 2007
Votes: +0
Thanks for the explanation and screenshoot also smilies/grin.gif smilies/grin.gif smilies/grin.gif

this web help me very much
9

report abuse
vote down
vote up
January 14, 2007
Votes: +0
PeBe: You're welcome! I'm glad it was helpful.
10

report abuse
vote down
vote up
January 14, 2007
Votes: +0
mr_nabo: ...
Nice trick. I've looked through your pages and you're a ninja at Joomla it seems. Maybe you can answer this very frustrating question I have:

Is there a way of displaying modules ONLY in a specific section or category but not in it's child pages? i.e. Only in Section 3 but not in the categories and content items within that category?

Thanks
11

report abuse
vote down
vote up
February 04, 2007
Votes: +0
Good question, Mr. Nabo. I have to think about that one, and I'll get back to you.
12

report abuse
vote down
vote up
February 04, 2007
Votes: +0
Thanks a lot, Corry! A very well-written and illustrated tutorial that is. Keep up the good work!
13

report abuse
vote down
vote up
February 05, 2007
Votes: +0
myBoubah: ... http://www.barkere.net
Thank you Cory. I was looking for this trick when your site popped up. very useful. I was able to rename the copy and change the content of my custom module. Very good stuff!!!
14

report abuse
vote down
vote up
February 17, 2007
Votes: +0
Great tutorial, Cory! Thank you.
15

report abuse
vote down
vote up
May 04, 2007
Votes: +0
Hi Susan,

I'm glad you found it useful. Thanks for stopping by.

Cory
16

report abuse
vote down
vote up
May 04, 2007
Votes: +0
Paul: ...
I'm newish to Joomla and (proudly enough) discovered on my own the route you've explained here to get content in two places. However, I'm having a devil of a time getting the "...Read More" link to take you from the home page blurb to the secondary page content. Any clues for the frustrated & clueless?

Thanks!
Paul
17

report abuse
vote down
vote up
October 14, 2007
Votes: +0
Hi Paul, I'm not sure I understand your question. The "Read More" link should automatically do what you are saying. What exactly is happening on your site?
18

report abuse
vote down
vote up
October 15, 2007
Votes: +0
Jack: ...
Hi, Cory! My situation is I want to put 1 additional banner in the left of front page. I've successfully made a copy of the banner, but when I try to edit the copy, I can't save or apply it. It shows error:
mosmodule::store failed
Duplicate entry '0' for key 1 SQL=INSERT INTO abc_modules('id', 'title', 'showtitle', 'ordering', 'position', 'published', 'module', 'access', 'params', 'client_id') VALUES ('0', 'Left Banner', '1','5','left','1','mod_banners','0','banner_cids= moduleclass_sfx=','0')

Is there a solution to fix this?
FYI, I'm using Joomla! 1.0.8 Stable.

Thanks!
Jack
19

report abuse
vote down
vote up
October 25, 2007
Votes: +0
Jesus Bright: ...
Thank you so much for this helpful tutorial. I had planned a good website and stopped by this barrier of displaying the same module in different positions. I searched Google and found your tutorials. Thanks a lot again for this lesson. It works just as I thought it could be.
20

report abuse
vote down
vote up
February 16, 2008
Votes: +0
Corry Man i love your site and I will visit every day until my site is working the way I want it to. say hi to the little one Lucy. lol you know what??? I think every one should start saying something to Lucy now that would be fun. in fact smilies/wink.gif

Thanks again
Mike Cross
21

report abuse
vote down
vote up
June 25, 2008
Votes: +0

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

busy
 
Tag it:
Delicious
Digg
Technorati
< Prev
Phil-A-Form

About HowToJoomla

HowToJoomla was started in September 2006 by me, Cory Webb, a long-time Mambo/Joomla user with a desire to give back to the community that has given so much to him.

HowToJoomla is not the best, most comprehensive Joomla tips site out there. That's not the goal. The goal is to share some of the knowledge and experience that I have gained through years of using the world's best content managment system. I hope that you will find this site useful and visit often. As I come across new tips and ideas, I will post them here for all to see.

I hope you enjoy using HowToJoomla and find it very useful.

Please take some time to read the Disclaimer.

Thanks for visiting!

About Me

I am a 28-year-old husband and father of a beautiful baby girl named Lucy. I have a degree in Electrical Engineering from the University of Texas at Austin, an MBA from Baylor University, and over 4 years experience working with the Mambo/Joomla CMS.

On February 1, 2008, I started a web design, development, and consulting company specializing in designing and developing custom Joomla-powered websites. The new company is aptly named Cory Webb Media, LLC. The double meaning is purely unintentional, but with a last name like "Webb" it is difficult to escape the obvious puns. If you are looking for professional assistance with your website, please feel free to contact me to discuss your project.

I also run HowToJoomla, CoryWebb.com (my personal website/blog), and JoomlaForm.com (a site dedicated to promoting good design in the Joomla! community). In my spare time (if there is such a thing), I volunteer with the youth ministry at my church.

Copyright © 2006 - Cory Webb Media, LLC - All rights reserved.
Powered by Joomla!