This topic is locked

Hiding the Add button on List page

8/13/2007 11:23:12 PM
PHPRunner General questions
C
ccuser author

Hi All,
I searched but could not find the answer to this...
Is it possible to not show the "Add New" button on list pages where the "no records on first page" option is selected. The idea here is to only show the add new button if there is a search item in the search box or the user has performed the search. So it would show up when records are displayed.
I know there must be a way through the Smarty template but I haven't yet discovered it.
Thanks for all your help!

J
Jane 8/14/2007

Hi,
you can do it editing HTML template on the Visual Editor tab --> HTML mode.

Find this code:

<A href="TableName_add.php">Add new</A>

and replace it with this one:

{if $message==""}<A href="TableName_add.php">Add new</A>{/if}