We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39498
    • 169 Posts
    with this modiefier I call a chunk which holds a svg.
    [[!*id:is=`1`:or:is=`2`:then=`[[$svg]]`]]


    the generated output is "1" or "2", the id of the current page.

    the svg contains a path that is breaking the chunk modifier, removing that path renders the svg chunk.
    I have no idea, what causes the conflict, as the chunck should be outputted as formatted.

    here is the path
    <path fill="#FFFFFF" d="M450.4,659.4C450.5,659.4,450.5,659.4,450.4,659.4c0-0.7-0.1-1.2-0.1-1.3v-1.3c-0.1,0.1-0.2,0.3-0.3,0.5
    	c0.1,0.9,0.2,1.7,0.2,2.3C450.2,659.4,450.4,659.4,450.4,659.4z M374.9,654.4c-0.2-0.4-0.3-0.8-0.4-1c0,0-0.1,0.1-0.1,0.2
    	c0.1,0.2,0.1,0.4,0.2,0.6C374.6,654.3,374.7,654.4,374.9,654.4z M436.4,672.8c-0.1-0.2-0.1-0.4-0.1-0.4l0,0c0,0.3,0,0.5,0,0.5
    	L436.4,672.8z M436.2,672.4v-0.6c0-0.4,0.9-2.2,1.1-2.4c0.2-0.4,0.2-2.2,0.6-2.8c0.4-0.6,0.9-1.1,0.9-1.5s-0.4-1.3-0.6-1.9
    	c-0.2-0.4-0.6-1.5-0.7-1.9c-0.2-0.2-0.4-0.6-0.9-0.6s-0.2,0.4,0.2,0.9c0.4,0.6,0.2,0.4,0.6,1.3c0.4,0.7,1.3,1.7-0.2,2.8
    	c-0.6,0.4-0.6,1.7-0.7,2.1c0,0.4-0.7,1.7-0.7,1.7s-0.4,0.7-0.6,0.6c0,0-0.2-0.2-0.3-0.3l0,0L436.2,672.4z M434.3,650.4
    	c-0.2,1.1-1.4,3.7-2.1,5.2c-0.8,1.4-0.2,2.6-0.4,3.5c0,0.9,0.5,2.8,0.7,4.1c0.2,1.1,0.6,3.4,0.6,4.1c0,0.6,1.2,1.9,1.8,2.5l-0.7-2.2
    	l-0.6-3.7l-0.4-5.2c0,0,0.7-3.4,1.1-4.1c0.4-0.7,1.3-3.5,1.3-3.5s0.2-1.1,0.4-1.7s-0.2-2.8-0.2-2.8s-0.4-3.6-0.6-4.3
    	c0-0.4-0.2-1.2-0.4-2.1c-0.3,0.1-0.5,0.2-0.7,0.4c0.3,1.6,0.9,4.1,0.9,5.7C435,648.5,434.5,649.3,434.3,650.4z M429,639l-0.5-2.7

    This question has been answered by AMDbuilder. See the first response.

    [ed. note: spica8 last edited this post 12 years ago.]
    • discuss.answer
      • 1343 ☆ A M B ☆
      • 2,213 Posts
      You might try doing something along these lines, which should prevent the contents of the svg chunk from being considered (http://modx.com/blog/2012/09/14/tags-as-the-result-or-how-conditionals-are-like-mosquitoes/).

      [[[[*id:is=`1`:or:is=`2`:then=`$svg`:else=`-`]]]]


      If that doesn't resolve your problem you might want to try using If instead, which might offer a slight performance boost over output filters.
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 39498
        • 169 Posts
        Oh, thanx. that article realy helped.
          • 1343 ☆ A M B ☆
          • 2,213 Posts
          Glad I could help!
            Patrick | Server Wrangler
            About Me: Website | Tweets |  MODX Hosting