Hi I'm looking to add a TV to my resources as a simple box to be able to add a Gallery for that resource. Is this possible? I just want to add
[[!Gallery? &album=`My Album` &plugin=`galleriffic`]]
so I can call this as [[*templatevariabletoshowgallery]] on my template. That way I can keep the [[*content]] clear in order to use that for other content for that page.
Any suggestions much appreciated.
discuss.answer
I would let the TV [[*templatevariabletoshowgallery]] just hold the name of the gallery (like "My Album"), and put a snippet call in the resource's template where the gallery should show up. This custom snippet checks if the TV value is not empty; if so, it returns the output of the Gallery snippet, else nothing.
That works awesome, thank you!