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

    I mean, the snippet suggested by heliotrope does not work (i.e. add a ", " read comma and space) if called cached "[[" it only works in uncached mode "[!".

    warm regards,

    -raavi.
      • 33273
      • 60 Posts
      I’ve got a problem with this delimiter (, ).
      All displays fine but when I want to use tag filter (with Ditto 1.1)

      [!Ditto? &startID=`57` &language=`russian` ....bla-bla-bla..... &depth=`1` &tagDelimiter=`, ` &tagData=`tvname_of` &tagMode=`onlyTags` &tags=`Korean`!]

      it finds the only documents that have ’Korean’ at the first position of tv output. ( Korean, Chinese, Thai, ... )
      And ignore documents with output Chinese, Korean, Thai ..
      I. e. Ditto "breaks" on the first delimiter , 
      I also tried to set &tagDelimiter to `, ` and `,%26nbsp;` with no success...


      I can’t save the delimiter `, ` in Resource Manager... it always cut the space symbol....

      sorry for my English. laugh
        • 33372
        • 1,611 Posts
        Quote from: Raavi at Sep 27, 2006, 02:35 PM

        I mean, the snippet suggested by heliotrope does not work (i.e. add a ", " read comma and space) if called cached "[[" it only works in uncached mode "[!".
        Are you calling this snippet within another snippet (e.g., Ditto)? If so, then that’s probably the cause of your caching problem, and one of the two will need to remain uncached. This snippet works fine uncached on its own (I used a slightly modified version of it myself).

        Quote from: yurican at Mar 06, 2007, 10:34 PM

        I’ve got a problem with this delimiter (, ).
        All displays fine but when I want to use tag filter (with Ditto 1.1)

        [!Ditto? &startID=`57` &language=`russian` ....bla-bla-bla..... &depth=`1` &tagDelimiter=`, ` &tagData=`tvname_of` &tagMode=`onlyTags` &tags=`Korean`!]

        Currently you can’t use & symbols in snippet calls (except to specify a parameter, of course). Use heliotrope’s snippet (above) instead for now. Future versions of MODx will undoubtedly fix both issues (trimming of spaces in TV delimiters and inability to use some characters in snippet calls).
          "Things are not what they appear to be; nor are they otherwise." - Buddha

          "Well, gee, Buddha - that wasn't very helpful..." - ZAP

          Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
          • 33273
          • 60 Posts
          Thank you ZAP!
          Thank you Helio!
          grin