I'm using version 5.60 Build 9.80
I'm trying to place some buttons on the table view and detailed view of some of the tables that I have not all of them though and the images and text varies depending on the table. When I insert any text or buttons in the table view template file on the templates folder it shows the text or the buttons and repeats the text or the buttons multiple times as opposed to the Detail view that everything works just perfect. Below is a brief of the situation.
Table_Name_templateTV - Any text or button duplicates itself multiple times
Table_Name_templateDV - Works perfect here.
I am using the same code in both templates, and in one does not work. What is special about the TV template file. What is the workaround here?
Placing images on top of the Table View as opposed to the Detail View
-
- Veteran Member
- Posts: 90
- Joined: 2015-11-23 01:02
-
- Posts: 11
- Joined: 2015-09-24 14:06
Re: Placing images on top of the Table View as opposed to the Detail View
The TV template file is used for each row of the tableview, it's called each time a row is being returned by sql (because of the MVC pattern).
If you need to insert a picture, put it between two <script> </script> tags at the top of tablename_view.php, it will work.
If you need to insert a picture, put it between two <script> </script> tags at the top of tablename_view.php, it will work.
-
- Veteran Member
- Posts: 90
- Joined: 2015-11-23 01:02
Re: Placing images on top of the Table View as opposed to the Detail View
Somehow I'm trying to follow this directions and it doesn't work the way that I did the code was the following:
<script>
<div class="row">
<div class="col-lg-2 col-md-2"> <a href="https://mydomain.com/admin/customers_view.php"><img src="images/step-1.png" width="199" height="83" alt=""/></a>
</div>
<div class="col-lg-2 col-md-2"> <a href="https://mydomain.com/admin/events_view.php"><img src="images/step-2.png" width="199" height="83" alt=""/></a>
</div>
<div class="col-lg-2 col-md-2"> <a href="https://mydomain.com/admin/eventContacts_view.php"><img src="images/step-3.png" width="199" height="83" alt=""/></a>
</div>
<div class="col-lg-2 col-md-2"> <a href="https://mydomain.com/admin/snackOrdersD ... .php"><img src="images/step-4.png" width="199" height="83" alt=""/></a>
</div>
<div class="col-lg-2 col-md-2"> <a href="https://mydomain.com/admin/customers_view.php"><img src="images/step-5.png" width="199" height="83" alt=""/></a>
</div>
</div>
</script>
<script>
<div class="row">
<div class="col-lg-2 col-md-2"> <a href="https://mydomain.com/admin/customers_view.php"><img src="images/step-1.png" width="199" height="83" alt=""/></a>
</div>
<div class="col-lg-2 col-md-2"> <a href="https://mydomain.com/admin/events_view.php"><img src="images/step-2.png" width="199" height="83" alt=""/></a>
</div>
<div class="col-lg-2 col-md-2"> <a href="https://mydomain.com/admin/eventContacts_view.php"><img src="images/step-3.png" width="199" height="83" alt=""/></a>
</div>
<div class="col-lg-2 col-md-2"> <a href="https://mydomain.com/admin/snackOrdersD ... .php"><img src="images/step-4.png" width="199" height="83" alt=""/></a>
</div>
<div class="col-lg-2 col-md-2"> <a href="https://mydomain.com/admin/customers_view.php"><img src="images/step-5.png" width="199" height="83" alt=""/></a>
</div>
</div>
</script>