<li>
<a name="vignette[+maxigallery.counter+]" href="javascript:void(0);"
onClick="javascript:showPic('[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]','[+maxigallery.picture.title:mymodifier+]','[+maxigallery.picture.descr:escslashandmore+]',[+maxigallery.picture_width_normal+],[+maxigallery.picture_height_normal+]);return
false;">
<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]"
class="thumbnail" title="[+maxigallery.picture.title:htmlent+]"
alt="[+maxigallery.picture.title:htmlent+]" width="[+maxigallery.picture_width_thumb+]" />
</a>
</li><a name="vignette[+maxigallery.counter+]...."
<script type="text/javascript">
lien = document.getElementsByName('vignette[+maxigallery.counter+]');
lien[0].onclick();
</script><script type="text/javascript">
//<![CDATA[
lien = document.getElementsByName('vignette1');
lien[0].onclick();
//]]>
</script>Get the v0.6 test version. Those placeholders are there.
You suggest to use [+maxigallery.picnumber+] in my thumb ’gallery’ template, but this placeholder does not returns any value neither...
What relationship you are not seeing? Every thumbnail in my example would have an id (id="vignette1", id="vignette2", id="vignette3"... etc. the number comes from [+maxigallery.picnumber+] placeholder). Then the extra JS is added to the end of galleryOuterTpl to get the first thumbnail link (id="vignette1") and call the onclick() from there. Then the first picture should always be shown by default when the page reloads.
I probably do not undestood the second part of you proposal with galleryOutertpl.. I dont see the relationship.
<li>
<a name="vignette[+maxigallery.counter+]" href="javascript:void(0);"
onClick="javascript:showPic('[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]','[+maxigallery.picture.title:mymodifier+]','[+maxigallery.picture.descr:escslashandmore+]',[+maxigallery.picture_width_normal+],[+maxigallery.picture_height_normal+]);return
false;">
<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]"
class="thumbnail" title="[+maxigallery.picture.title:htmlent+]"
alt="[+maxigallery.picture.title:htmlent+]" width="[+maxigallery.picture_width_thumb+]" />
</a>
</li>[!MaxiGallery? &galleryPictureTpl=`tpl-mg-projet-thumb` &pics_per_row=`3` &max_thumb_size=`50` &thumb_use_dropshadow=`1` &js=`mgJs` &max_pic_size=`737` &quality_pic=`100` !]
<script type="text/javascript">
//<![CDATA[
lien = document.getElementsByName('vignette1');
lien[0].onclick();
//]]>
</script>
<div class="picturecontainer">
<img id="maxImage"
src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]"
alt="[+maxigallery.picture.title:htmlent+]"/>
<p id="maxTitle">[+maxigallery.picture.titlephx:escslashandmore+]</p>
<p id="maxDescr">[+maxigallery.picture.descrphx:escslashandmore+]</p>
</div>
{{afficher-vignette1}}