Need to get rid of the link on the detail view

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
nycwebmaster
Veteran Member
Posts: 90
Joined: 2015-11-23 01:02

Need to get rid of the link on the detail view

Post by nycwebmaster » 2019-02-18 17:09

Hi,

I want to eliminate this title and the link from the detail view of a record. I tried looking on the table_name_view.php and also on the templates file and could not figure out how to delete it.

Image

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Need to get rid of the link on the detail view

Post by jsetzer » 2019-02-18 17:34

Hi, you can try the following:
  1. in hooks-directory, create a file named YOURTABLENAME-dv.js
  2. put the following code there and save

Code: Select all

$j(function() {
  $j("form > .page-header").hide()
});
You can use .remove() instead of .hide().

If you want to keep the [Add new]-button, try the following code:

Code: Select all

$j(function() {
  $j("form > .page-header > h1 > .row > div > a").remove()
});
Both should work (hopefully).

Best regards,
Jan
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

nycwebmaster
Veteran Member
Posts: 90
Joined: 2015-11-23 01:02

Re: Need to get rid of the link on the detail view

Post by nycwebmaster » 2019-02-18 18:07

Hi,

Thanks for the quick reply, the first code works! the second don't but is ok I wanted the first solution anyways. Thanks a lot!

Post Reply