Home page modules showing on articles in Joomla - joomla

I have custom HTML & other modules on homepage which have been marked to display only on homepage. I also have articles on homepage with "read more" links.
Problem is that when I click on these read more links page opens with all the homepage modules still there and article is displayed below these modules.
I have checked setting all the modules are marked to display just on homepage, yet they get displayed on articles pages too.
Please help.

Those articles become "children" of the page you are viewing, so that's why you see the modules there.
I had that problem before, it's related to Itemid I guess.
You can use Advanced module manager to assign those modules ONLY to the homepage.
EDIT:
Manual solution without using the AMM extension.

you MUST publish the category that your articles belong to in ANY joomla menu so that those articles get their own item id because they are children of that category.
this is a default Joomla behavior since 1.5

Every article needs to have a menu item or a parent menu item, IIRC, and if it doesn't find one, its parent menu item is the default menu item (the front page menu item).
So to fix this, you need to make sure that every category has a corresponding menu item, so that every article's parent menu item is not the home page. This works because every article has a category ("uncategorized" counts as a category).
Create a hidden menu, and then create one "Articles ยป Category List" menu item for each category.
You can find more documentation in the wiki page entitled How to control module display when linking to an article with no menu item.

Here is an explanation of the joomla item id problem and a fix
http://www.joomlabamboo.com/blog/tutorials/how-to-avoid-the-joomla-menu-itemid-issue
When articles do not have a menu item they show the modules assigned to the page they were linked from, in the same way if you had a blog category menu item you would expect any blogs under that menu item to show the modules assigned to the parent without having to assign them to each and every post.
This is a big problem when you have a homepage which hides the component output as any further items just show the homepage with a different url.

I had the same problem, and installing the Advance Module Manager (AMM) did solve my problem. All I had to do was go to the specific modules that I had chosen to display on the home page (Based on the standard Joomla settings), then under the "module assignments" options of each module there were new settings (From AMM) that had a section for "Home page", I chose the setting "Include" (Default is "ignore") on each of the modules.
What this "include" does, is that it ensures that only the homepage (your true default directory, rather than the Joomla article chosen as "feature/homepage") is the one that features the modules chosen, and not children articles, or others (which was my problem)

I had the similar problem and found this article to be a great point to start:
How to control module display when linking to an article with no menu item
It works for J 2.5 and 3x
Personally I used the Metamod extension to control Joomla modules display.
It requiers a little bit of code understanding, but greatly helps when you figure out...

I used the follwing php snippet in my custom Joomla 3.3 template:
if (
$_SERVER['REQUEST_URI'] == '/' or
$_SERVER['REQUEST_URI'] == '/index.php' or
$_SERVER['REQUEST_URI'] == '/home.html') {
echo 'homepage html'
} else {
echo 'non-homepage html' }

I had this same problem with the modules such as "most popular" and "recently added" and the problem was solved when I checked out the language of the articles and changed the ALL to ENGLISH, or FINNISH etc. After that, everything worked like I wanted to. Hope this will help you too..

Related

How to remove certain modules from article in joomla 2.5?

I am new to Joomla, I have some module on my homepage.
Every time I open read more article on homepage, the slide show module still appear.
I have hiden the intro text but nothing change. If i uncheck the homepage, the module completely disappear on homepage and article.
Please teach me how to remove the module just on read more article not the homepage.
Sorry if my english is not good
Thank you :D
If your articles are uncategorized or they they exist in a category that is not connected to a menu item (to get a unique menu id) you have to set module settings:
Module -> Menu Assignment: On all pages except those selected
And select the pages that you don't want the module to appear.
EDIT:
If there is an option to connect article categories to menu items (even to a hidden menu that won't be displayed in the site) then the correct way is to set in the module:
Module -> Menu Assignment -> Only on the pages selected
And select the pages that you want the module to appear.
Hope this helps

Altering the position of an article in Joomla 1

I am currently updating a web page for a company who are still using the very old Joomla 1. When creating a new menu item, I have found that an article is needed in order to create the page.
My problem is the fact that there is no option to alter the location on the page of the article. For modules, this is not a problem as there is an option which can be used to choose the specific location. For articles there is no such option, which has been of grave annoyance as they simply crop up here, there and everywhere!
If it is of any assistance the theme which is being used is contained here: http://demo.rockettheme.com/?template=versatility4
Regards,
Chri3
I dont think this has changed in any version of Joomla, but it has been so long since I have looked at a Joomla 1 installation, I could be way off. Additionally, I dont have one to look at for reference.
So here goes my scientific wild &^#%! guess. When you create a menu from the menu manager in Joomla, you have to select a "menu item type". This could be a single article layout, category layout, blog layout, or link to another installed component, ect... I think its one of the first options in the menu item manager.
Then once you select "single article" there should be a dialog box that allows you to select or manually enter the article you would like to display for that menu item. Hope this helps!
Open up your templates index.php file and look for the following code...
<jdoc:include type="component" />
This is the call to the "main component" in your case would be the content component. You can move this anywhere within index.php and your article will display there

menu link opens module under menu module - joomla 2.5

maybe it an easy solution for someone..I would like how can I set up an item in menu (positioned on right side of template), that when I click it, it opens/shows a module (news blog) under that menu(item) (in the same right position). Similar to click accordion just that menu item is in a menu module and a news blog is another module.
thank you.
In Joomla you can assign modules to specific menu items. THat means the module will appear when you click that item. You can assign a module to one page, all pages, specific pages you click or "all except" a list you select. Other than that I'm not sure what the question is, but I will say it's not a programming question.
In joomla module can also show in article,
You can create a article and link those article to specific menu.
And those article called a module like {loadmodule module_name}.
Also with module position like this {loadposition position_name}.

Joomla newsflash items linking to separate page

Joomla 2.5
Let's say I got "News" category with some articles inside and modules, let's call them "module1", "module2" and up to 10.
Normally, if I got menu item called "News" with category view under it (it's called blog or something in Joomla) and I set only "module1" to be displayed there, all the items from this category will be displayed with the same layout.
However, if I add ie. "module2", which is a newsflash, to my homepage, items from "News" category will be displayed with homepage layout, with all the modules shown. I'd like them to be displayed as if they were on "News" page. How to do that?
Answer: add articles to "hidden" menu is not acceptable. Imagine blog, where you have to add all your posts to any kind of menu.
Visual explanation:
Normally, a menu position which lists articles form category and has only two modules (call them module1 and module2) enabled, will look like this: http://imm.io/FGrJ
If you click any item, you will be redirected to a page with the same layout (notice: I don't have to add all articles to menu, just article listing page): http://imm.io/FGrP
However, if I add newsflash module on my homepage, which is full of modules, clicking an item will display article on homepage, in area that I called main content. Which is bad. I'd like it to open just like article from articles listing. Here is screen: http://imm.io/FGsR
This article on the Joomla docs gives a good idea of what your tying to do as I understand it. As you don't wish to have menu items as you state in the question I think the best way is what they label as number 3 at the bottom - installing an extension that provides detailed control over where a module displays. Their featured module is Advanced Module Manager - which comes from NoNumber - something a lot of sites use and has a proven track record. However there is an entire section of modules on Joomla Extension Directory here

YooTheme Zoo Application Blog Front Page

I am using YooTheme's ZOO Blog application on my front page. I have two things I'd like to acheive;
When clicking on an article title, you are taken to a page where you
have the article in full view, including any read-more content you
may/may not have. When taken to this page, you still have all modules
which are assigned to the 'home' menu item. Unfortunately, in order
for the application, 'Blog' to show on the front page - it must be
assigned to the 'home' menu item.
I'd preferably like the full article page just to have the menu module at the top, and perhaps any modules I do actually 'enable'.
A strange one - I'd like to have no pagination at the bottom of my
front page. I'd simply like to encourage users to go to a separate
page that lists all of the news.
I hope someone can help!
I'd utilise the 'fantastic' community that YooTheme holds - but unfortunately, after 3 months (being the lowest tier when you buy a product) any and -all- support stops. This includes the ticketing system which is mainly community-help based.
If need be, I can provide screen shots.
You can edit the full and any layout by clicking to the icon in zoo administrator panel. There you can edit every element in the link which is under your app type name! Next to the "Default" or your template there are links for full, teaser, feed etc. Full is for the full view of the item and teaser is for the category/front page view! In Yootheme's website you can find a comprehensive documentation about zoo also! Let me know if you need anything else
I found the answers to this problem. (I'm not native english speaker, but I hope you'll understand)
First method - sh404sef, I don't know whether it's a feature or a bug in that component, but that what you need to do:
Unpublish your default homepage menu item(zoo category for example) to wich there were assigned modules that you dont need to be shown, then create and make it Default Page(star sign) new menu item(or use existing one), and assign to it the modules that you want to appear in the full item view(I'm using product not a blog zoo app) or article full view when you click link from homepage and opens zoo item page or zoo category page.
In joomla Globa Configuration turn on - Use URL rewriting, then in sh404sef Control Panel turn on - Enable URL optimization and Rewriting mode with .htaccess . Errase all the url links in sh404SEF: URL manager(if any exist), we need it (sh404SEF) to create new links.
Now when you open new default home page with modules you need to be shown in the zoo item full view, you start to going on ALL the zoo links you wish to open then with that quantity of modules. sh404sef creates SEF link in it backend (in URL manager). And that links will open with exactly with that quantity of modules with zoo.
Now you can publish back again your previos homepage and make it default page. And there will be modules that you want on homepage, but because of links that sh404sef created when you were clicking, the zoo items or article links will open with different modules that we asigned to our second default page you use to create those links. For that purpose I commonly use existing menu item where will be another set of modules not like in the homepage. When you have new link on site you have to partially repeat that. You have to go on that link first time from the page where quantity of modules suits you (and to be on the safe side make that page your default page for that time)
Second method - JoomlaXTC Zoo Item Wall, its a module you don't have to make menu item to show zoo items on a homepage. But, I didn't tried it myself I only read about it.

Resources