joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

Add option to exclude module from article pages

Open QuotesUK opened this issue 1 year ago • 4 comments

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"

articles-category

Alternatively there could be a new menu assignment option for "only on the parent pages selected"

menu-assignment

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.

QuotesUK avatar Nov 22 '23 19:11 QuotesUK

Not sure if I'm allowed to post this here, but there are extensions that do this, for example:

https://regularlabs.com/advancedmodulemanager

DavidBoggitt avatar Nov 26 '23 08:11 DavidBoggitt

This might help you https://brian.teeman.net/joomla/896-modules-nowhere

brianteeman avatar Feb 17 '24 09:02 brianteeman

Would be something like:

  1. On all pages
  2. No pages
  3. Only on the pages selected (with child pages)
  4. Only on the pages selected (without childs pages)
  5. On all pages except those selected (with child pages)
  6. 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 avatar Apr 27 '24 12:04 rdeutz

@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.

carlitorweb avatar Apr 30 '24 22:04 carlitorweb

I will make a draft and see from there

carlitorweb avatar Apr 30 '24 22:04 carlitorweb