Hide mod_flexicontent when item list is empty

More
12 years 8 months ago #38161 by ggppdk
Hello,

The code that you provided shows that it is working ...
Code:
<div class="grid-box width100 grid-v"><div class="module mod-box deepest"> <h3 class="module-title">Autres fiches sur le sujet</h3> </div></div>

-- I only see the title,
-- I don't see any HTML of the Universal Content Module in there.

so either: disable the module title or use "Hide if Empty" option of Advanced Module Manager


-- 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 review. Thanks!

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

More
12 years 7 months ago #38167 by Ibehem
I'm using yootheme template, and the problem came from there (even with the advanced module)...

I found a solution, so everything works fine!

Thank you again for your time and this great product!

Eric

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

More
12 years 7 months ago #38169 by micker
think to share your solution ! ;)

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
12 years 7 months ago #38170 by Ibehem
Sure!

(found on yootheme forums)

Edit a custom version of module.php from the wrap theme. (better to create a specific version than to edit the source):

Locate the file styles/[template_name]/layouts/module.php

Edit file as follows:

Find
// render module
echo $this->render("modules/templates/{$template}", compact('style', 'badge', 'showtitle', 'title', 'content', 'dropdownwidth'));

And insert the following text between the two lines
if (!empty($content)) /* custom code for advanced media manager */

So it will look like this
// render module
if (!empty($content)) /* custom for advanced media manager */
echo $this->render("modules/templates/{$template}", compact('style', 'badge', 'showtitle', 'title', 'content', 'dropdownwidth'));

Eric

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

Moderators: vistamediajoomlacornerggppdk
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
Save