Hi,
I am still investigating in this.
I stumbled upon another strange thing / problem.
I have a table that shows images in the child section (name it: t_w_child with child 'image_direkt'), but I also have a table where I can directly see those images (name it: image_direkt).
I see, I can edit the design for the TV with the files image_direkt_TV and image_direkt_TVS from the /templates folder. Here the following two rules apply:
TV is used in general for all, but the current selected record
TVS is applied to the selected record only
I saw, that the child area of the t_w_child table uses the same - but completely different code in the browser output.
By the same I mean it looks pretty much like the out put from the image_direkt table, but some things are different:
image_direkt table:
Code: Select all
<tr data-id="5481">
<td class="text-center"><input class="hidden-print record_selector" type="checkbox" id="record_selector_5481"
name="record_selector[]" value="5481"></td>
<!-- Edit this file to change the layout of each record in the table view -->
<!-- To disable clicking of a field, remove the <a onclick="document.myform.SelectedField.value = this.parentNode.cellIndex; document.myform.SelectedID.value = '5481'; document.myform.submit(); return false;" href="myimages_view.php?SelectedID=5481" style="display: block; padding:0px;"> and </a> formatters around it-->
<!-- If you wish to hide the table view header that contains the column titles, -->
<!-- add the following to the myimages_init() hook (in hooks/myimages.php file) -->
<!-- $options->ShowTableHeader = 0; -->
<td id="myimages-ID_Container-5481" class="myimages-ID_Container"><a
href="/hooks/containerIDfromName.php?containercode=40409355"
style="display: block; padding:0px;">40409355</a></td>
<td id="myimages-Bild_Datei-5481" class="myimages-Bild_Datei"><a
href="images/481/3567b318bb07348e5.jpg" data-lightbox="myimages-Bild_Datei"><img
src="thumbnail.php?i=481/3567b318bb07348e5.jpg&t=myimages&f=Bild_Datei&v=tv"
class="img-thumbnail"></a></td>
<td id="myimages-Bild_Bemerkung-5481" class="myimages-Bild_Bemerkung">TASTTASTTAST<a
onclick="document.myform.SelectedField.value = this.parentNode.cellIndex; document.myform.SelectedID.value = '5481'; document.myform.submit(); return false;"
href="myimages_view.php?SelectedID=5481" style="display: block; padding:0px;">When you are
dead.jpg</a></td>
<td id="myimages-Log_Edit_Zeit-5481" class="myimages-Log_Edit_Zeit"> </td>
<td id="myimages-Log_LetzerBearbeiter-5481" class="myimages-Log_LetzerBearbeiter">
</td>
<td id="myimages-Log_Create_Zeit-5481" class="myimages-Log_Create_Zeit"><a
onclick="document.myform.SelectedField.value = this.parentNode.cellIndex; document.myform.SelectedID.value = '5481'; document.myform.submit(); return false;"
href="myimages_view.php?SelectedID=5481" style="display: block; padding:0px;">2024-04-18
09:10:36</a></td>
<td id="myimages-Log_Ersteller-5481" class="myimages-Log_Ersteller"><a
onclick="document.myform.SelectedField.value = this.parentNode.cellIndex; document.myform.SelectedID.value = '5481'; document.myform.submit(); return false;"
href="myimages_view.php?SelectedID=5481" style="display: block; padding:0px;">myUserName</a></td>
<script>$j(function () {
var e_Bild_Datei = '481/3567b318bb07348e5.jpg'; if (e_Bild_Datei == '' || e_Bild_Datei == ' ') $j(/*<*/ '#myimages-Bild_Datei-5481' /*>*/).html('');
});</script>
</tr>
child area 'image_direkt' in the t_w_child table:
Code: Select all
<tr data-id="5481">
<td class="text-center view-on-click"><a href="#"
onclick="myimagesID_ContainerGetRecords({ Verb: 'open', ChildID: '5481'}); return false;"
class="h6"><i class="glyphicon glyphicon-new-window hspacer-md"></i></a></td>
<td class="myimages-ID_Container" id="myimages-ID_Container-5481">40409355</td>
<td class="myimages-Bild_Datei" id="myimages-Bild_Datei-5481"><a
href="images/481%2F3567b318bb07348e5.jpg" data-lightbox="myimages-Bild_Datei"><img
src="thumbnail.php?i=481%2F3567b318bb07348e5.jpg&t=myimages&f=Bild_Datei&v=tv"
class="img-thumbnail"></a></td>
<td class="myimages-Bild_Bemerkung" id="myimages-Bild_Bemerkung-5481">When you are
dead.jpg</td>
<td class="myimages-Log_Edit_Zeit" id="myimages-Log_Edit_Zeit-5481"></td>
<td class="myimages-Log_LetzerBearbeiter" id="myimages-Log_LetzerBearbeiter-5481"></td>
<td class="myimages-Log_Create_Zeit" id="myimages-Log_Create_Zeit-5481">2024-04-18
09:10:36</td>
<td class="myimages-Log_Ersteller" id="myimages-Log_Ersteller-5481">myUserName</td>
</tr>
The latter code does NOT work: When I click on the linked (and displayed!) thumbnail, somewhere in the page rendering at the server side (I suppose) the filenamefield has been changed (URLencoded) from
to
I would probably be able to intercept the change from
to
IF I would know where AG takes the base code from.
In my tests:
display direct (TV, image_direkt_view.php): /templates/image_direkt_TV.html IS used
display as CHILD: /templates/image_direkt_TV.html is NOT used
Question
1) Where does AG take the code to layout the CHILDdren page from?
2) Why are stand-alone records and the same as child handled in a different way?