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
[ed. note: markg last edited this post 10 years, 5 months ago.]
Content Creator and Copywriter
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
Just add [[*longtitle]] to the Default Value field of your TV.
A MODx Fanatic
Quote from: treigh at Apr 12, 2016, 09:58 PMJust 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