Welcome, Guest
Please Login or Register.    Lost Password?

How to hide empty tables
(1 viewing) (1) Guest
This is the optional Forum header for the Suggestion Box.
Go to bottom
Post Reply
Post New Topic
Page: 1
TOPIC: How to hide empty tables
#443
How to hide empty tables 1 Year, 9 Months ago Karma: 0
Currently my page shows four tables.
Sometimes "No records found." is shown for some tables.
Is it possible to hide / disable a table which does not contain records?

Thank you!

brgs
Paul
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
paulsonnentor
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#446
Re:How to hide empty tables 1 Year, 9 Months ago Karma: 1
Hi,

yes. Try to add this statement in \components\com_grid\layouts\GridView.php (in line 14, first statement in build function):

Code:


if ($this->rows ==0) return "";



Best regards,
Viljem
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
viljem
Admin
Posts: 181
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 1
Moderators: tomaz
Tools JX, Powered by Joomla!; Joomla templates by SG web hosting