Hmm, yea it shows all albums when not selecting a gallery, i think it’s ok this way.
dunno how to make the wrapper anyway.
hey fourroses,
you can use this Snippet here: "ChunkIf"
http://www.codeistry.com/blog/2008/11/modx-snippet-chunkif/
e.g. create two Chunks:
{{gallery}} with your gallery call in it
[!easy2?gid=[*galleries*]&w=100&h=100&thq=90!]
and an empty one {{empty}}
...then use ChunkIf to display nothing when the value of your "galleries" TV is empty, and display the gallery if a gallery is selected
[[ChunkIf? &tv=`galleries` &trueChunk=`gallery` &falseChunk=`empty`]]
(i will use this to optionally display a gallery on an article page)
*edid: the short form of the snipet should also work ( no {{empty}} chunk ): -> [[ChunkIf? &tv=`tvname` ]]
"The shorthand form attempts to output the contents of a chunk with the same name as &tv"