Static Text on Homepage (only)

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
trippy1976
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Feb 29, 2008 4:38 pm

Static Text on Homepage (only)

Post by trippy1976 » Fri Feb 29, 2008 7:15 pm

I've been trying to find the answer to this by search, etc. but can't *quite* find the answer.

I am installing a Joomla site. I really want my front page to have a central area where I have:

[static text]
[news items]

I have searched and looked and the best solution for me was to make a custom module for the static text. I did that and it really is the best option for me for a large variety of reasons. The only problem is that I assigned it to a display area like "user1" and in my site template I can see where that is set to display.

Now, my static module shows up everywhere. I just want it on the home page. How can I do this? Can I add something to my template to only display user1 if we're on the front page? Can I set in the module via admin to only show on certain pages, etc?

User avatar
Rogue4ngel
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Sun Nov 26, 2006 10:46 pm
Location: New York

Re: Static Text on Homepage (only)

Post by Rogue4ngel » Fri Feb 29, 2008 7:44 pm

What version of Joomla are you using?
If you're not a part of the solution, you're a part of the problem.

trippy1976
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Feb 29, 2008 4:38 pm

Re: Static Text on Homepage (only)

Post by trippy1976 » Fri Feb 29, 2008 9:24 pm

1.5, sorry. Thanks!

User avatar
Rogue4ngel
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Sun Nov 26, 2006 10:46 pm
Location: New York

Re: Static Text on Homepage (only)

Post by Rogue4ngel » Sat Mar 01, 2008 12:38 am

In the admin menu:

Extensions -> Module Manager

Click the check box associated with the module and then select the edit icon, or click on the module title link to go into edit mode.

On the lower left, you will see Menu Select. This is where you will determine where your module will appear.

There are three radio buttions: All, None, Select Menu Items...

The default is typically ALL. Just choose Select, and then select Home (or whatever the menu name that brings you to the home page). I believe that should do it.
If you're not a part of the solution, you're a part of the problem.

trippy1976
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Feb 29, 2008 4:38 pm

Re: Static Text on Homepage (only)

Post by trippy1976 » Sat Mar 01, 2008 5:34 am

Well that did address that particular issue.

Funny enough if you are able to help me... it segues well into another help item I posted earlier.

I'm not (currently) planning on using the "main" menu, I only need the User menu for what I want to do. I suppose I could use the main menu and set the access to registered if I have to for the same effect.

Anyway, I copied the "Home" item out of the Main Menu into my Top Menu, but whenever I click the link in the top menu for "Home" it usually appends some ItemID to the URL and I lose ALL menus on my left hand side. I have tried just copying the home entry from Main, redoing it as an external link to just "index.php" or "/index.php" (which ends up only linking to the current component I'm viewing rather than the actual home page).

I'm kind of at a loss. Why would it work from Main but not from the Top menu when I actually select the menu item from the Main menu, use the copy function to put it in Top? How can I get that to work?

trippy1976
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Feb 29, 2008 4:38 pm

Re: Static Text on Homepage (only)

Post by trippy1976 » Sat Mar 01, 2008 5:36 am

Well, I type all that and then I decided to activate the Main menu. I looked at the URL for the Home link and it was my localhost. So I changed the external URL in the top menu to link to "/" and it works. Problem solved.

Biomech

Re: Static Text on Homepage (only)

Post by Biomech » Thu Mar 06, 2008 11:45 pm

Any ideas on the same thing (static text on home page only) for version 1.0.15? :) (I can modify the index PHP if needs be)


Post Reply