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

    is there any way to assign tv’s to documents rather than templates?

    Gareth
      • 32847
      • 171 Posts
      Hello,
      you should duplicate your template with your TV only for this template and assign the new template to your document
        • 10470
        • 48 Posts
        Ok, i thought that was the way i would have to do it. Seems a bit clumsy as it makes updating templates a pain.
          • 25663 MODX Staff
          • 12,272 Posts
          Indeed. Sounds like a good feature request for the bugtracker. smiley
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 7455
            • 2,204 Posts
            Than it will be DV’s instead of TV’s
              follow me on twitter: @dimmy01
              • 10470
              • 48 Posts
              good point grin

              it would be nice if we could simple hide TVs on certain documents, maybe have something like a exemption list
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                I am hoping to see "categories" for documents, and TVs can be assigned to a document category.
                  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
                  • 10470
                  • 48 Posts
                  what does the Access permissions in the tv properties do? I thought creating a group of documents and setting the tv to this group only, would hide the tv in other documents. but is does not appear to do this.
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    It controls which users can edit it. I’ve never checked it out, so I’m not really sure at what level it does so.
                      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
                      • 27376
                      • 576 Posts
                      Quote from: gareth84 at Feb 16, 2007, 06:30 AM

                      Seems a bit clumsy as it makes updating templates a pain.
                      A method that some people use to solve this is putting chunks in templates that contain common code and then put specific code in your templates. For instance, creating a chunk that contains the <head> tag information and so on...