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

    So i have a some products each represented by a resource/document, using a template containing this TV:

    [*Nyhed*]
    input type:DropDown List Menu
    input values: option1==value1||option2==value2||option3==value3

    On another page i have a ditto call which uses an tpl parameter to a chunck that contains [*Nyhed*].

    So i thought when i edited each product document, and adjusted the dropdown menu to one of the 3 options, ditto would output the chosen value for each document, however this dose not seem to be the case. Ditto simply outputs "value1" for all the resources, even if TV is set to option2. undecided

    Guess i’m missing something :’(
      • 3707
      • 241 Posts
      Did you try using [+Nyhed+] in your chunk?
        • 21778
        • 223 Posts
        Quote from: bob1000 at Nov 23, 2009, 08:11 AM

        Did you try using [+Nyhed+] in your chunk?

        This works smiley thanks
        also when i leave an value blank like this: option1||option2==value2, ditto still writes out "option1" when i use [+Nyhed+] - i want one option to be blank, so basically only the values are displayed
          • 3707
          • 241 Posts
          I think you have to leave the first value completely blank in your TV, so there is nothing before the first double pipes:
          input values: ||option2==value2||option3==value3
          Or maybe just remove the value from the first option:
          input values: option1==||option2==value2||option3==value3
          But I’m not sure, I haven’t tested it...