We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    Cycle Variable Names? Do you mean like you did in your request config file? If so, you could do it like "$var$i".

    Why would the filter class need to explode TV values?
      • 16429
      • 254 Posts
      Quote from: Mark at Nov 11, 2006, 04:11 PM

      Cycle Variable Names? Do you mean like you did in your request config file? If so, you could do it like "$var$i".
      Yes. Do you know how can I find something related to this?
      Quote from: Mark at Nov 11, 2006, 04:11 PM

      Why would the filter class need to explode TV values?
      Because if you have a TV value like "Florence,Rome" and you filter by "Rome" the filter doesn’t recognize the match.
        kudo
        www.kudolink.com - webdesign (surprised?)

        [img]http://www.kudolink.com/kudolinkcom.png[/img] [sup]proudly uses[/sup] [img]http://www.kudolink.com/modx.png[/img]
        • 18397
        • 3,250 Posts
        It does already in 1.1 smiley
          • 16429
          • 254 Posts
          Ok, one thing less to do! grin

          Thank you for Ditto Mark. It’s an invaluable piece of software.
            kudo
            www.kudolink.com - webdesign (surprised?)

            [img]http://www.kudolink.com/kudolinkcom.png[/img] [sup]proudly uses[/sup] [img]http://www.kudolink.com/modx.png[/img]
            • 12652
            • 228 Posts
            Are there any specific requirements or limitations to randomize?

            It was working fine, I had to rearrange the structure of the documents to create a product hieararchy, and now it doesn’t work.

            At the very least, there are 4 other documents within the container that the one is being pulled from, so I would at least expect one of the other three to show up.

            Does it need the startID or depth to be called at a certain level? Can it handle multiple containers?
              | Identity Developments delivers SEO focused web design and web presence services
              - it's not about websites, it's about your identity. |
              • 18397
              • 3,250 Posts
              Can you provide your call?
                • 12652
                • 228 Posts
                Sure,

                [!Ditto? &randomize=`1` &startID=`6` &tpl=`ProductSummary` &depth=`10` &summarize=`1` &filter=`tvProductHighlight,Yes`!]
                


                This is placed on the home page and is meant to deliver 1 product randomly. The tvProductHighlight is a yes/no tv in all of the products to determine whether or not they should be included for this random and other special locations.

                I’ve tried a number of different combinations... more or less attributes. No matter what, Test 5 continues to show up, and if I mark it as No for highlight, then Test 4 shows up.

                Here is the current structure.

                Products (6)
                -Product A (10)
                --Type A (20)
                ---Brand A (12)
                ----test 1 (15)
                ----test 3 (17)
                ----test 4 (35)
                ----test 5 (36)
                --Brand B (13)
                ----test 2 (19)
                --Type B (21)
                ---Brand A (33)
                ----test 2 (16)
                --Brand C (34)
                -Product B (11)
                -- Type C (22)
                -- Type D (24)
                -- Type E (23)
                -- Type F (25)

                The intention is to just randomly show one of any of the products designated for Highlight.

                Thanks
                  | Identity Developments delivers SEO focused web design and web presence services
                  - it's not about websites, it's about your identity. |
                  • 18397
                  • 3,250 Posts
                  Yup, there is a bug in Randomize in Ditto 1.1 Beta 1. Check out Beta 2 which should be coming out in a few minutes.
                    • 18397
                    • 3,250 Posts
                    And its out, Ditto 1.1 Beta 2!

                    Please continue the discussion there @
                    http://modxcms.com/forums/index.php/topic,8988.msg62744.html#msg62744

                    Topic Closed

                    This discussion is closed to further replies. Keep calm and carry on.