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 bottomPage: 1
TOPIC: How to hide empty tables
#443
How to hide empty tables 4 Months, 1 Week 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
paulsonnentor
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#446
Re:How to hide empty tables 4 Months, 1 Week 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
viljem
Admin
Posts: 152
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Tools JX, Powered by Joomla!; Joomla templates by SG web hosting