Hide mod_flexicontent when item list is empty

More
11 years 11 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
11 years 11 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
Time to create page: 0.739 seconds
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