Hello!
Faced with a small problem output gallery in the link ...
Perhaps the solution would be interesting to many ...
There is a variant solutions create a snippet ...
But I got out another option
So.
There is the parent and the child together with the gallery
Create a template in chunk or output resource reference
<a href="#">gallery link</a>
Then
Create a template in chunk or output resource reference
Then we turn to the child document by getResurses or pdoResources
I chose pdoResources
[[!pdoResources? &parents=`[[+id]]` &depth=`2` &tpl=`tplLink`]]
Chunk tplLink:
And combines:
<a href="[[!pdoResources? &parents=`[[+id]]` &depth=`2` &tpl=`tplLink`]]">gallery link</a>