We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3763
    • 155 Posts
    Hello!

    I have searched the forum for this one but couldn’t find anything.

    My question is, can I use a TV in document title, description, introtext, etc?
    I have used for example in introtext:
    My introtext [*MyTV*]

    but it is not working. Do I have to call in an other way the TV?

    Thank you!
    Boby
      ...my Photo Gallery on Flickr...
      • 6823
      • 6 Posts
      Hi,

      the right way of calling your tv is :

      [*#MyTv*] instead of [*MyTv*]

      I’ve tried to use one of my TV’s in the menu name and it works so I guess it also works for others fields....

      David.
        • 6823
        • 6 Posts
        Euh sorry, embarrassed , it works even if you use [*MyTV*]. I’ve tested with description and introtext and it works as well but it seems not possible for Title.

          • 3763
          • 155 Posts
          Hmm, yep seems like it’s working. I was testing with Ditto and that’s where it’s not working.
          Thanks anyway wink

          Boby
            ...my Photo Gallery on Flickr...
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            The default installation (with sample site installed) uses TVs in the pagetitle for the login/logout pages. I’ve used them in a number of the document fields with no problem.
              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
              • 33337
              • 3,975 Posts
              Quote from: dcontact at May 19, 2006, 09:41 AM

              Hi,

              the right way of calling your tv is :

              [*#MyTv*] instead of [*MyTv*]

              I’ve tried to use one of my TV’s in the menu name and it works so I guess it also works for others fields....

              David.

              [*#MyTv*] is used to make it editable via QuickEdit smiley
                Zaigham R - MODX Professional | Skype | Email | Twitter

                Digging the interwebs for #MODX gems and bringing it to you. modx.link
                • 33453
                • 141 Posts
                If you are using a TV with Ditto you call it like [+tvMyTv+] - just another level of confusion huh
                  • 33337
                  • 3,975 Posts
                  Quote from: zenmaster at May 20, 2006, 03:48 AM

                  If you are using a TV with Ditto you call it like [+tvMyTv+] - just another level of confusion huh

                  another level of confusion of flexibility ? grin
                    Zaigham R - MODX Professional | Skype | Email | Twitter

                    Digging the interwebs for #MODX gems and bringing it to you. modx.link
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    For the awesome flexibility of adding whatever placeholders we want on-the-fly, it’s a small price to have to pay to remember to use the tv prefix when using the [+...+] placeholder syntax!
                      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
                      • 18397
                      • 3,250 Posts
                      I made it use the tv prefix for a simple reason. Some people name TV’s the same as document objects and if that happened one of the two values would be lost. So, allowing the two to be called differently solved this.