Issue with "Hide if Empty" Module

Search
Other Bug Reports questions
Forum

Issue with "Hide if Empty" Module

Ben Seidel's Avatar Ben Seidel
We are having an issue with a Related Posts Module by EasyBlog
Joomla Version: 4.2.x
Advanced Module Manager Pro - Latest

We have created a Related Posts Module with the setting "Hide if empty" enabled (see hide-if-empty.png).
However, if we select a style for the module (see style-setting.png) this no longer works properly (see not-hiding.png). The module is only hidden if we keep the module style set to "None." Obviously this is not ideal, because we need to add styling to the module to be in line with the site's design and give visual separation from the rest of the content.

Please advise on how we can get the "hide if empty" working while a module style is set.

Given that this module is by EasyBlog, we reached out to them first. However, they insisted we reach out to you since the hide if empty functionality is not native to their module.
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
The 'Template' tab in the module is not something Joomla core gives you. It seems specific to EasyBlog (or your template).
What is probably happening is that EasyBlog is adding the HTML to the output of the module, before Advanced Module Manager gets to see it.
Then Advanced Module Manager sees all that HTML and doesn't see it as empty anymore.

No idea how that module or that setting works. But if it is done through a system plugin, you could try changing the ordering:
regularlabs.com/blog/242-plugin-order-is-important
Please post a rating at the Joomla! Extensions Directory
Ben Seidel's Avatar Ben Seidel
The styling would come from the YOOtheme template.
I don't think it's Easyblog's output causing the issue. The reason I believe this is because if we leave the template style to blank, the module hides properly if no tags are present (thus confirming easyblog is not outputting data when there are not tags).
However, as soon as we select a style, even if the easyblog output is blank, the module still loads blank.
Do you agree that this makes it sound like an issue with either the template or advanced module manager, not easyblog?
Does the above give you any more guidance in what the issue could be?

I'm not sure how we would change the ordering without negatively impacting the template though at this point.
Peter van Westen's Avatar Peter van Westen ADMIN
See if you can reproduce this issue with the Joomla core template.
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in