Page 1 of 1
Need to get rid of the link on the detail view
Posted: 2019-02-18 17:09
by nycwebmaster
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.
Re: Need to get rid of the link on the detail view
Posted: 2019-02-18 17:34
by jsetzer
Hi, you can try the following:
- in hooks-directory, create a file named YOURTABLENAME-dv.js
- 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
Re: Need to get rid of the link on the detail view
Posted: 2019-02-18 18:07
by nycwebmaster
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!