[EXPLAINED] Hide module when field empty

More
7 years 5 months ago - 7 years 5 months ago #65216 by melissa.blanchard
Hello,

I'm using Joomla! 3.6.4 and FLEXIcontent 3.1.1.

I have a universal module that uses a custom field scope, dynamic filter using field values of currently item. When the field shows no results is there a way the module can hide itself.

Thanks
Melissa
Last edit: 7 years 5 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #65224 by ggppdk
Replied by ggppdk on topic Hide module when field empty
Hello

what exactly is the HTML output of the module ?
- the module should create no HTML when there is no data to show

and then it is the responsibility of the Joomla template and module manager (e.g. if you are using regular labs module manager) to hide it


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #65225 by melissa.blanchard
The only thing that remains it the module title

<div class="moduletable">
<h3>Module Title</h3>
</div>

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #65227 by ggppdk
Replied by ggppdk on topic Hide module when field empty
Hello

that is code added by your Joomla template code

- you can try to disable the module title
- you can try the Regular Labs module manager


FLEXIcontent module, does it is job and returns no HTML


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #65234 by melissa.blanchard
Yes I know, but I need the title and I need the title to go away when the module returns no html. Like hide if empty like we see on another module.

Please Log in or Create an account to join the conversation.

More
7 years 5 months ago #65235 by ggppdk
Replied by ggppdk on topic Hide module when field empty
Hello

in the other module the "title" could be added the module itself
- you can try using regularLabs Module manager to remove empty modules

Question: which "layout" (template) the Universal Content module is using:
- default
- select
- news
- carousel

some custom layout that you have made ?
(i just only want to makes sure that we do not return some "spaces")


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.296 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline