It appears that no matter what menu link I assign my custom module to, if I assign the module to the home menu, then it shows on all pages. If I don't assign it to the home menu, but to other links, then the module doesn't show up on any pages. I've tried this on the Cassiopeia template with SEF turned off in the global configurations. Using the 'On all pages' and 'No pages' work, but I still think it's because all/none basically turn it on/off on the home link.
Setup
Test
The custom module should only appear/not appear on the pages I selected.
The module assignment only works on the home page, but affects all pages regardless of whether the module is assigned to them or not.
Joomla! version
4.4.3 Stable. Fresh install.
PHP version
8.3.4
MySQL version
5.7.23
Plugins installed
DirectPHP
ASM No Admin
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
bug
|
Labels |
Added:
Information Required
|
Here's a video of what I'm experiencing. I will try to reinstall a fresh copy to see if the problem still exists. Sorry about the static in the audio. Forgot to turn off the sound capture.
https://drive.google.com/file/d/19zGRZrrnVG3o0NfpDLywG8Dbc68es_KC/view?usp=sharing
All articles have their own menu link. No parent/child.
But in your video you are not using the menu link. If you were using the menu link then you would see &itemid=XX in the url. That is the glue that holds the system together and is what controls which modules to display
Thanks for the reply. I'm not sure what you mean by the menu link. How to I go about getting that URL? I'm using the link shown in the menu item which does not have the itemid parameter in it.
Quick follow up. I tried adding &itemid=XX where XX is the ID of the menu link, but the results are the same as not adding the itemid.
@brianteeman Ok. I did get it to work now adding the &Itemid=XX. I guess it's capital I in the front. Thanks for your help. It's odd that Joomla doesn't just add this to the link displayed in the menu item.
Joomla does when you actually use the menu
If you use Route::_() to generate your links, all that is done automatically for you.
This seems to be a user error, so I'm closing this.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-03-29 10:43:51 |
Closed_By | ⇒ | Hackwar |
I can not replicate this. This would also be a major bug in our system and we would have heard about this before. Can you make sure that you are really using this feature correctly in the module manager? Can you post the URLs where you see that on your test system and describe the menu item setup?