We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18367
    • 834 Posts
    So is this possible?

    I want to set [[*longtitle]] as the default value for a TV.

    IE So that the field is automatically populated with the longtitle value by default.

    Plus I also want to over write it.

    I already have the TV set up and working for text input.

    I just would like a backup default value.

    Thanks

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

    [ed. note: markg last edited this post 10 years, 5 months ago.]
      Content Creator and Copywriter
      • 37523
      • 141 Posts
      If you wish to have a default output for pretty much any tag you can use a Output Modifier. For a TV you could have:

      [[*myTv:default=`[[*longtitle]]`]]


      For further information about Output Modifiers look at this doc page.
        Glyn Szasz
        Sydney, Australia

        Happy to help (when can) and happy to learn

        If you are a Sydney based MODX developer would love to hear from you. Please contact me.
      • discuss.answer
        • 30585
        • 833 Posts
        Just add [[*longtitle]] to the Default Value field of your TV.
          A MODx Fanatic
          • 18367
          • 834 Posts
          Quote from: treigh at Apr 12, 2016, 09:58 PM
          Just add [[*longtitle]] to the Default Value field of your TV.

          Doh!

          Yeah, that's what I had but I didn't realise it was outputting correctly.

          I was expecting to see the final value in the doc TV section. Silly me.

          Anyway, it works.
            Content Creator and Copywriter
            • 30585
            • 833 Posts
            Glad it worked for you.
              A MODx Fanatic