We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7455
    • 2,204 Posts
    I like to mak a selection box with this a the option:

    show==<span class="noline">&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;</span>testimonial

    but it does not work

    it generates a weard code i think its becase of the " or mabe the =
      follow me on twitter: @dimmy01
    • Hi Dimmy,

      You could try escaping the quotes with a backslash like this:

      show==<span class=\"noline\">   |   </span>testimonial


      Hope that helps, Garry
        Garry Nutting
        Senior Developer
        MODX, LLC

        Email: [email protected]
        Twitter: @garryn
        Web: modx.com
        • 7455
        • 2,204 Posts
        Quote from: garryn at Mar 09, 2006, 11:21 AM

        Hi Dimmy,

        You could try escaping the quotes with a backslash like this:

        show==<span class=\"noline\">   |   </span>testimonial


        Hope that helps, Garry

        I tryed that it gives me this when I edit a page the folloing apears next to the checkbox:
          |   testimonial" name="tvtestimonial_aan[]" onchange="documentDirty=true;setVariableModified('testimonial_aan');" />   |   testimonial">show
        
        so it splits just after the <span tag could be because its html and gets rederd that way?
          follow me on twitter: @dimmy01
          • 7455
          • 2,204 Posts
          Is’nt there any solution for this? i tryed lots of things but it does not work
            follow me on twitter: @dimmy01
          • Hi Dimmy,

            I just set up a dropdown TV with a few example values and your value from above with the following code as the input option values:

            <span>Me</span>||<span>You</span>||show==<span class="noline">   |   </span>testimonial

            And, it worked fine. Also, tried it with a list box (single and multi select) and it worked okay as well.

            How are you setting your input options?

            Cheers, Garry
              Garry Nutting
              Senior Developer
              MODX, LLC

              Email: [email protected]
              Twitter: @garryn
              Web: modx.com