joomla-cms
joomla-cms copied to clipboard
Add option to exclude module from article pages
Is your feature request related to a problem? Please describe.
When using Category Blog a module can be displayed on the blog layout and article pages for a selected category.
It isn’t possible to load a module on the blog layout only
Example scenario, using articles category module to display a list of articles with a specific tag/author etc to introduce the articles (and link to them) but not wanting that repeated on the article pages as well.
Describe the solution you'd like
Display a module on the blog layout + don’t display on articles
Achieve this with the introduction of a global module option "show on article page"
Alternatively there could be a new menu assignment option for "only on the parent pages selected"
Additional context
Dynamic mode for articles category module has an option to exclude article pages. However this option isn’t available in normal mode or more generally on other module types.
If a module is loaded into the category description the menu assignment still controls whether it is displayed or not.
Not sure if I'm allowed to post this here, but there are extensions that do this, for example:
https://regularlabs.com/advancedmodulemanager
This might help you https://brian.teeman.net/joomla/896-modules-nowhere
Would be something like:
- On all pages
- No pages
- Only on the pages selected (with child pages)
- Only on the pages selected (without childs pages)
- On all pages except those selected (with child pages)
- On all pages except those selected (without child pages)
1, 2, 3 & 5 would be like it is now 4 & 6 would be new options
So you can control when a module is displayed.
@rdeutz I have something similar made for my personal extensions, so I want to make a PR for this feature. But my doubt is, how we support 3rd extensions or even others no-com_content Joomla component.
I will make a draft and see from there