We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7455
    • 2,204 Posts
    After I dit an update randomize stopt to work.

    Is this known or is the parameter changed?

    Dimmy
      follow me on twitter: @dimmy01
      • 18397
      • 3,250 Posts
      Are you calling the snippet uncached?
        • 7455
        • 2,204 Posts
        Quote from: Mark at Mar 10, 2007, 02:51 PM

        Are you calling the snippet uncached?

        yes

        an dpage also not cached I tryed cashed also

        this is the call:
        [!Ditto? &startID=`30,31,32` &tpl=`DittoTmpl_randomactueel` &randomize=`1`&summarize=`1` &total=`99` &multiLevel=`1` &language=`nederlands` !]
        


        this worked in the 2nd last version.
          follow me on twitter: @dimmy01
          • 24981
          • 109 Posts
          Hi Mark,

          I haven’t installed or look at documentation yet. Did you consider (or include) the code I sent before to allow column output for Ditto, using tables, so we can do a display?

          Demonstrated here:
          http://www.huggalugs.com.au/online-store.htm

          Regards

          Richard

            • 18397
            • 3,250 Posts
            I’ve got something even more powerful in the works for 2.1. Its something called conditional templating--- filters for templates. So you could just say if x%4, make it colum 1, etc.
              • 6726
              • 7,075 Posts
              Quote from: Mark at Mar 15, 2007, 09:40 PM

              I’ve got something even more powerful in the works for 2.1. Its something called conditional templating--- filters for templates. So you could just say if x%4, make it colum 1, etc.

              Now here is an exciting thought !

              But I have enough to grind with 2.0 already tongue
              A big step up, but also a bit of work to learn when you’re formatted to think Ditto 1.0, so to speak... I find it’s the biggest learning effort since coming to MODx, but then that’s to be expected Ditto is quite key to MODx smiley
                .: COO - Commerce Guys - Community Driven Innovation :.


                MODx est l'outil id
                • 33337
                • 3,975 Posts
                hey Mark, will it cool to have 1 variable for [folder-name]? so we can use Ditto and Ditto2 side by side?

                or let me know where to change that variable? i need it! laugh
                  Zaigham R - MODX Professional | Skype | Email | Twitter

                  Digging the interwebs for #MODX gems and bringing it to you. modx.link
                  • 25663 MODX Staff
                  • 12,272 Posts
                  Actually is a very good idea Mark that could make side by side testing of old/new versions potentially much less painful. Simple an additional variable or configuration param that sets the specific snippet or resource path. This is being done for TinyMCE in the next release in fact.
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 33372
                    • 1,611 Posts
                    I think this is already implemented in Ditto 2 (set the $ditto_base parameter at the top of the snippet).
                      "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
                      • 25663 MODX Staff
                      • 12,272 Posts
                      By golly you’re right indeed! Thanks Zap (silently kicks self for not looking first)... tongue

                      The line in question:
                      $ditto_base = isset($ditto_base) ? $ditto_base : $modx->config['base_path']."assets/snippets/ditto/";


                      Which begs the follow on question of should it be:
                      $ditto_base = isset($ditto_base) ? $modx->config['base_path'].$ditto_base : $modx->config['base_path']."assets/snippets/ditto/";

                      So that you could just add "&ditto_base=`assets/snippets/ditto-new`" and it’d take care of the base path bit if installed in a subfolder, etc.?
                        Ryan Thrash, MODX Co-Founder
                        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me