Page 1 of 1

Table View Title - Link removal?

Posted: 2016-06-21 12:28
by ronwill
Is there any way, method for a non coder like myself (so if coding needed need detailed help!), to remove the Link (refresh table - tablename_view.php) off the TABLE VIEW TITLE so it does nothing (make it a dead or non existing link, I don't need it to do anything, no redirect, no refresh, but just act as a title)?

It undermines the integrity, function of an application I'm working on. I have a detailed scenario explaining my project and how the refresh link on the tableviewtitle causes me problems that I will post if the above is not possible so another solution can be found/requested.

Cheers, for any help on offer.
Ron - AppGini Pro V5.50 Rev 835

Re: Table View Title - Link removal?

Posted: 2016-06-22 07:05
by DevGiu
Not sure if it's the best way, but this works:

hooks/footer-extras.php

Code: Select all

<script>
$j(function(){
	$j('.page-header > h1').find('a').contents().unwrap()	;
})
</script>

Re: Table View Title - Link removal?

Posted: 2016-06-22 21:25
by ronwill
Thanks for the response, I'll give it a go and let you know if it works for me

Re: Table View Title - Link removal?

Posted: 2016-06-24 12:37
by ronwill
Thanks, it worked just as needed, allows me to continue with my project and come back to this part at a later time when I have more knowledge/skills on multi filtering, look-ups, relationships etc.
Cheers,
Ron - AppGini Pro V5.50 Rev 835

Re: Table View Title - Link removal?

Posted: 2020-03-08 13:32
by aarlauskas
Hi, found this and the only code that works. Question: is there a way to remove this link for a specific table? hooks/footer-extras.php removes the link on all tables. Thanks

Re: Table View Title - Link removal?

Posted: 2020-03-08 14:15
by pbottcher
Hi,

just add the code to the hooks/TABLENAME-tv.js file for the TABLENAME needed.

Re: Table View Title - Link removal?

Posted: 2020-03-08 14:57
by aarlauskas
Of course! Thanks Pascal. I tried to close the code with <script><script> as in footer-extras.php which obviously didn't work.. All fine now, Thanks again! :)