We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36225
    • 20 Posts
    Hi all,

    I would like to have a template variable with type radiobox where I can format the text besides the radiobox.
    For ex. Input Option Values:
    <b>First option</b><br/>Description 1==1||<b>Second option</b><br/>Description 2==2


    Unfortunately, once rendered, the HTML tags are htmlspecialchars’ed, so I see the HTML code and not the nice bold or line break as wanted.
    I’ve seen that we can add our own tvs, but if I could just copy a file .tpl and change a line it would be great. Thanks for your help.
      • 9207 ☆ A M B ☆
      • 2,475 Posts
      I remember doing that was a pain, unfortunately... special characters all got converted, making it nearly impossible to add HTML or ampersands.
        • 36225
        • 20 Posts
        Actually, drop-down does the nice HTML rendering, but unfortunately, once we choose an option, the chosen value appears with the HTML tags sad
        Somehow for drop-down list a solution has been found by the modx team, as the template choice in the Create/edit document tab for a resource has the appropriate behaviour.
          • 36404
          • 307 Posts
          hi,

          if you’re working with Evo (well probably in Revo too but i don’t know for sure) there is a way to do nearly what you want in tv presentation and/or content, custom TVs !!!
          once you’ve tasted you can go back... and you can have images or whatever you can dream about as label or else smiley

          have swing
            réfléchir avant d'agir