quit the + in home page

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
tuxor
Veteran Member
Posts: 48
Joined: 2014-06-15 00:09

quit the + in home page

Post by tuxor » 2015-10-14 19:44

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
Attachments
home.png
home.png (75.56 KiB) Viewed 4417 times

dragon
Veteran Member
Posts: 44
Joined: 2015-09-29 00:06

Re: quit the + in home page

Post by dragon » 2015-10-15 00:19

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">
Appgini 5.50, Revision 835. Mac OSX 10.11 running Windows 10 on VMWare.

tuxor
Veteran Member
Posts: 48
Joined: 2014-06-15 00:09

Re: quit the + in home page

Post by tuxor » 2015-10-15 15:41

Hi, I see that file, but that quit of all items. And I need just to quit for some items. Thanks

udayvatturi
AppGini Super Hero
AppGini Super Hero
Posts: 85
Joined: 2014-06-14 03:08
Location: India
Contact:

Re: quit the + in home page

Post by udayvatturi » 2015-10-16 04:44

//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 } ?>

Post Reply