Hi again!
To transfer the picture data of the thumbnail link to the Photo page, I now did the following:
In the [tt]tpl_thumb[/tt] I added a parameter [tt]picDataString[/tt] to the URL of the link:
<a class="thumb" href="[~15~]&picDataString=[+id+]~[+images_dir+]~[+filename+]~[+title+]"><img src="[+thumbs_dir+][+filename+]" alt="[+title+]" title="[+title+]" /></a>
So a click on the link will store this information of the individual picture in the global variable [tt]$_GET[/tt] ; so it can be accessed from the Photo page via [tt]$_GET[’picDataString’][/tt] . In a snippet I can access the single informations by exploding the string into an array.
To get the path information of the picture file I use this snippet [tt]"getPicFile"[/tt] :
<?php
$pdstring = $_GET['picDataString'];
$pdarray = explode("~", $pdstring);
echo "$pdarray[1]"."$pdarray[2]";
?>A similar snippet [tt]"getPicId"[/tt] delivers the [tt]picId[/tt] of the picture:
<?php
$pdstring = $_GET['picDataString'];
$pdarray = explode("~", $pdstring);
echo "$pdarray[0]";
?>The EG call in the Photo page (id=15) now becomes the following:
[[EvoGallery? &type=`single` &picId=`[!getPicId!]` &display=`single` &itemTpl=`tpl_foto`]]
Here the template [tt]tpl_foto[/tt] had to be changed into this:
<img class="foto" src="[[getPicFile]]" alt="[+title+]" title="[+title+]" />
I think this looks fine so far -
but the big problem remains:
Going back to the Gallery page and clicking another thumb link will not update the variable [tt]$_GET[’picDataString’][/tt] - it is fetched again from the manager’s cache.
How can I force MODx to take the new value of [tt]picDataString[/tt] for [tt]$_GET[/tt] ?
Any hints are much appreciated!
Best regards
ottogal