This topic is locked
[SOLVED]

 exlude empty tables from menu?

5/16/2011 2:52:00 AM
PHPRunner General questions
M
mickna author

I really struggle with the menu...

My problem: I do not want to show tables in my menu, which are empty.

Is it possible somehow to exclude a table with now records from the menu and only show the table if there are any records?
thx,

mickna

P
procheck 5/16/2011

Hi Mickna,
You can check to see if there are any records and display or hide the menu link using Event: ModifyMenuItem
http://xlinesoft.com/phprunner/docs/menu_item_modify.htm
Hope this helps
Al

Sergey Kornilov admin 5/16/2011

This tutorial can help you find number of records per table and modify/remove menu item accordingly:

http://xlinesoft.com/blog/2011/01/25/how-to-use-menu-builder-in-phprunnerasprunnerpro/

D
Daniela 5/18/2011

Thanks both!

This is a good point to start.

M
mickna author 5/18/2011

Dani was faster than me.
Also thx for pointing to this direction.

@Dani: Looking forward to see this tomorrow <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=58394&image=1&table=forumreplies' class='bbc_emoticon' alt=';)' />
mickna