We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36426
    • 197 Posts
    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.

    This question has been answered by ottogal. See the first response.

      Yorkshire UK based hosting provider: https://www.simulant.uk
    • discuss.answer
      • 22427
      • 793 Posts
      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.
        • 36426
        • 197 Posts
        That works awesome, thank you!
          Yorkshire UK based hosting provider: https://www.simulant.uk