Page 1 of 1

Need some help AG family

Posted: 2022-10-28 12:18
by utony
I want to remove the table from my page. Yes, I am trying to build the rows manually. I can not figure out how to make the table and selector go away. Can someone point me to the file where this can be removed?

Re: Need some help AG family

Posted: 2022-10-28 12:40
by AhmedBR
Hi,

Use this code in hooks/TABLENAME-tv.js (creat file if it does not exist).

First line removes the page selector.
Second line removes the words "Go to page:".
Third line removes the NEXT button;
Forth line removes the Previous button;

Code: Select all

jQuery(document).ready(function () {

		document.getElementById("TABLENAME_pagesMenu").hide();
		document.body.innerHTML = document.body.innerHTML.replace( /Go to page:/g, "");
		$j('#Next').hide();
		$j('#Previous').hide();
		
});
Change TABLENAME to you table name.
Of course there must be a one line for removing the whole class, but I prefer my code to be as simple as possible, I only do tiny apps.
This way no file will be overwritten in case you need to regenerate the app.

Re: Need some help AG family

Posted: 2022-10-28 15:19
by utony
I need this gone

Re: Need some help AG family

Posted: 2022-10-28 15:48
by AhmedBR
Basically you want a blank page when you open the table view?

Re: Need some help AG family

Posted: 2022-10-28 18:52
by jsetzer
What about removing access permission for certain group/s in Admin Area?

Then those users will not see that table in Homepage nor menu nor when directly accessing TABLENAME_view.php.

Re: Need some help AG family

Posted: 2022-10-28 19:14
by pbottcher
as an alternative solution. Just create a copy of the templates/TABLENAME_templateTV.html. Edit the new copy to your needs and point in the hooks/TABLENAME.php file with $options->Template and point to the copy you created.

Re: Need some help AG family

Posted: 2022-10-28 19:54
by utony
Basically, I want to take the table elements and make it a bootstrap card using the elements from the table. I was able to accomplish the bootstrap card, and I was able to remove the elements from the table, but for the life of me I cannot remove dang table. I can't find out where to remove it.

Re: Need some help AG family

Posted: 2022-10-28 19:57
by utony
jsetzer, I want them to see the data just not in a table format, I want it in the card format. I just can't find the place to remove the table. It is not in the TV html file. There must be a file I am missing to remove the <td>

Any ideas????

Re: Need some help AG family

Posted: 2022-10-28 20:12
by utony
Here is what I am talking about. I need the table gone on the card to stay. I just can't figure out how to make the table go bye bye.. any ideas?

Re: Need some help AG family

Posted: 2022-10-28 20:35
by pbottcher
try to add some css to hiede the empty table.

Code: Select all

<style>
[data-tablename="YOURTABLENAME"] {
display: none;
}
.pagination-section {
display: none;
}
</style>

Re: Need some help AG family

Posted: 2022-10-28 20:50
by utony
And I put this code where?

Re: Need some help AG family

Posted: 2022-10-28 20:51
by utony
Never mind, I figured it out! It's gone!!!! You rock thank you!!!!!!!!!!!