We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12066
    • 48 Posts
    Hi everyone,

    probably I'm just not getting it, but is it possible to set a TV for a resource without a template ('empty'). In the DB this resource is set with '0' for 'template'.
    Just came to my mind when dealing with a simple display of related resources and haven't found a post regarding this question.

    Thanks for any kind of guidance or enlightment.
      • 38723
      • 165 Posts
      I'm fairly sure you have to set a template to assign template variables to it. What type of TV is it?

      If I ever need to assign TVs to pages which don't need a template, I just create a new, empty template and assign TVs to it, that way it works just like setting a page to "0" (kind of) but you get the correct TVs too.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        An example would be if you're using static resources with a custom content type to offer .pdf files for download. You want to use TVs for search and tagging features. The static resources will never be displayed; with the custom content type they'll automatically offer the download dialog, or get opened in your PDF reader. So an empty template that you can assign your static resources to will give the access to the TVs you want.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org