We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27330
    • 884 Posts
    Hola everyone,

    Evo 1.0.2

    <ul>
    [*myFeaturesTV*]
    </ul>
    


    type: checkbox
    input options: feature1||feature2||feature3
    Widget: Delimted List
    Delimiter: <li>

    Problem is that first item is never enclosed in <li> tag. only second and later item gets the opening and closing tags.

    anyone have an idea what am I doing wrong or is this not suppose to work out of the box as I hope ?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You are telling it to output a delimited list using <li> as the delimiter. So all it’s doing is replacing every || it finds with <li>. Try HTML Generic Tag specifying li instead.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 27330
        • 884 Posts
        thx Susan,

        I tried what you suggested and it didn’t work. this is the result.
        <ul>
        <
        <li> id="test" class="testClass">feature2><</li>
        <li> id="test" class="testClass">feature3> </li>
        </ul>


        The delimited list actually enclosed each Feature inside <li> so I thought that’s the way to go. I only want to output the checkboxes as list, IIRC in some tag cloud snippet I saw it workinging just with pipe as delimiter and not a list.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          don’t use the < and > when specifying the tag to use; just the name of the tag: li
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 27330
            • 884 Posts
            omg now that’s embarrassing. thanks again.