We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20349 ☆ A M B ☆
    • 453 Posts
    Hi all!

    I was just wondering...
    Is it possible to show some TV in only one specific document (not template)?

    Example:
    Show TV with name MyDocTV only on MyDoc (ID=100)


    ...or another example:
    Show TV with name MyDocTV only on documents MyDoc1 (ID=102), MyDoc2 (ID=101), etc...
      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You could have the TV tags in the template, but only have content in the TV for the documents where you want it; the default value would be empty.

      Alternately, you could put the TV tags in the document’s content, although I can easily see where that may not be appropriate.

      And thirdly, use a snippet with the appropriate TV API functions to fetch, format and display the TV value when on the desired document(s).
        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
        • 20349 ☆ A M B ☆
        • 453 Posts
        Thanks for the reply, but I don’t think you understand what am I asking smiley

        I have some TV... and instead of displaying it in manager on every doc with same template, I want to show it only on one (or few) doc’s.


        Something like ManagerManager function for hiding;
        example:
        mm_hideFields('tvSomeTV','', '5');
          BASE - Web Design Studio
          MODX Ambassador

          Website
          • 20349 ☆ A M B ☆
          • 453 Posts
          Quote from: ganeshXL at Jun 03, 2011, 10:59 AM

          I think it’s also possible to use the "Manager Manager" plugin to show or hide TVs on a per-document-basis.

          That’s it! But how can I target TV for document ID’s?
            BASE - Web Design Studio
            MODX Ambassador

            Website