We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32963
    • 1,732 Posts
    Hello Everyone,

    Here’s a little movie showing some of what will be possible in beta2.

    Note: LOOP-WHILE will be renamed to REPEAT-WHILE.

    Any comments, suggestions?
      xWisdom
      www.xwisdomhtml.com
      The fear of the Lord is the beginning of wisdom:
      MODx Co-Founder - Create and do more with less.
      • 6726
      • 7,075 Posts
      Waow Raymond, that’s nice !

      I noticed one thing that was not mentionned in the Beta1 doc, the ability to pass data field with #:data_field# (it seems to be like "data placeholders", isn’t it ?)
      Now your example is pretty amazing if all it takes is creating a TV with an @SELECT binding and then retrieve data field as easily, it’s amazing grin

      Would that work with any field, even custom fields created by a user in the DB, given a proper MySQL query ?

      (Noticed in the demo you run MODx 0.9.1, any particular reason ?)
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 25663 MODX Staff
        • 12,272 Posts
        It certainly should David. And you can get crafty on the templates by inserting IF: snippets/chunks as well.

        Raymond... is there a way to do pagination with this for really long result sets?
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 6726
          • 7,075 Posts
          Quote from: rthrash at Jul 19, 2006, 11:47 AM
          It certainly should David. And you can get crafty on the templates by inserting IF: snippets/chunks as well.

          That’s way cool !

          About the IF tags : that will certainly make building and maintaining websites easier, by reducing the number of needed templates laugh
          Awesome things in perspective...
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l'outil id
            • 32963
            • 1,732 Posts
            @David,

            Quote from: davidm at Jul 19, 2006, 11:44 AM

            I noticed one thing that was not mentionned in the Beta1 doc, the ability to pass data field with #:data_field# (it seems to be like "data placeholders", isn’t it ?)
            Yes, we could refer to them as data placeholder. It’s in the doc for beta1 as field/column tags.


            Now your example is pretty amazing if all it takes is creating a TV with an @SELECT binding and then retrieve data field as easily, it’s amazing grin
            Yep that’s all it takes smiley Hopefully when I get some time I’ll be able to do a few more live-tutorials on how to you can use a TV and the data repeater tag to generate a dynamic excel document that can be downloaded from your website.


            Would that work with any field, even custom fields created by a user in the DB, given with a proper MySQL query ?
            Yes it will certainly work. Just add the #:fieldname# to the template and it’s good to go.


            (Noticed in the demo you run MODx 0.9.1, any particular reason ?)

            lol - That’s from my old lab where I play around with MODx codes. It’s a customized version of MODx that I’ve code named GreenToken.

            The parser updates should work with any version of MODx .

            @Ryan,

            Raymond... is there a way to do pagination with this for really long result sets?

            Yes and no. No in that there’s no built-in support direct pagination but you can use the &offset and &pop features and a litle JS to simulate such features:

            [[:REPEAT-WHILE? &source=`[[*pages]]`
            &tpl=`#:id# #:pagetitle#`
            &pop=`3`
            &offset=`[[:REQUEST? &name=`offset`]]`]]

            <a href="index.php?id=1&offset=6">Page 2</a>

            Where &offset = page number * &pop value

            Other than that I can easily add such features. What do you think?
              xWisdom
              www.xwisdomhtml.com
              The fear of the Lord is the beginning of wisdom:
              MODx Co-Founder - Create and do more with less.
              • 6726
              • 7,075 Posts
              Getting back from vacation, I am wondering how the new parser is going and if it’s comitted to the 0.9.5 upcoming release ?

              Thanks !
                .: COO - Commerce Guys - Community Driven Innovation :.


                MODx est l&#39;outil id
                • 32963
                • 1,732 Posts
                Hi David,

                Welcome back! You’re just in time to meet beta 2 - lol

                I told Ryan that I will be posting an update today and here it is.

                Beta 2 is here - See first post.

                To see a movie the new Tabular Data source feature visit: http://www.xwisdomhtml.com/livetutor/mailmerge.html
                Note: Low Quality Movie available on site.
                  xWisdom
                  www.xwisdomhtml.com
                  The fear of the Lord is the beginning of wisdom:
                  MODx Co-Founder - Create and do more with less.
                  • 6726
                  • 7,075 Posts
                  G-R-E-A-T Raymond !

                  Off to installing this baby laugh

                  Edit : I just watched the video, my, my it’s so flexible this will open some wonderful possibilities !

                  Edit 2 : Just read the doc.. I noticed great things :

                  • pass a parameter to a TV (awesome !!)
                  • the form field placeholders (this rocks !)
                  • the strip, escape and raw filters (how many support threads I read about those, you’ll make lots of people happy there)
                  • great sample use of REPEAT-WHILE, truly help understand the power of this tag smiley
                    .: COO - Commerce Guys - Community Driven Innovation :.


                    MODx est l&#39;outil id
                    • 32963
                    • 1,732 Posts
                    Quote from: davidm at Jul 31, 2006, 04:24 AM

                    G-R-E-A-T Raymond !

                    Off to installing this baby laugh

                    Edit : I just watched the video, my, my it’s so flexible this will open some wonderful possibilities !

                    Edit 2 : Just read the doc.. I noticed great things :

                    • pass a parameter to a TV (awesome !!)
                    • the form field placeholders (this rocks !)
                    • the strip, escape and raw filters (how many support threads I read about those, you’ll make lots of people happy there)
                    • great sample use of REPEAT-WHILE, truly help understand the power of this tag smiley

                    Many thanks david for the kind words and with helping to test the code .

                    I’m hoping to have beta 3 (final beta before RC1) release sometimes next week. This beta will include bug reported fixes and tweaks.
                      xWisdom
                      www.xwisdomhtml.com
                      The fear of the Lord is the beginning of wisdom:
                      MODx Co-Founder - Create and do more with less.
                      • 17883
                      • 1,039 Posts
                      Well, with this movie even I understand a little bit what are you talking about wink

                      AWESOME! Looking forward to test this and after that doing dirty things with it laugh

                      Regards,

                      keep up your good work!