Page 1 of 1

quit the + in home page

Posted: 2015-10-14 19:44
by tuxor
Hi, I need to quit the + (add new) from home page. How can do that? (check the picture)

I inspected with firebug but i don't find the file to edit that.

Thank you

Re: quit the + in home page

Posted: 2015-10-15 00:19
by dragon
Somewhere around line 62 of file home.php you can change the glyphicon. I hope that helps.

Code: Select all

<i style="vertical-align: bottom;" class="glyphicon glyphicon-plus">

Re: quit the + in home page

Posted: 2015-10-15 15:41
by tuxor
Hi, I see that file, but that quit of all items. And I need just to quit for some items. Thanks

Re: quit the + in home page

Posted: 2015-10-16 04:44
by udayvatturi
//Existing code home.php line 59

Code: Select all

	
<?php if($can_insert){ ?>
       // some code
<?php }else{ ?>
     // some code
<?php } ?>
Change the condition in "if" to something like below , it goes to else condition where + wont be displayed.

Code: Select all

	
<?php if($can_insert && ( $tc[0] != "<Table Lable>" ) ){ ?>
       // some code
<?php }else{ ?>
     // some code
<?php } ?>