We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22897 ☆ A M B ☆
    • 209 Posts
    I like it Brett! The one thing I’m not clear about is how you manage to use jQuery directly in json-builder.js without it conflicting with mootools (I’ve always had to drop into jquery.noconflict() mode and use $j as my reference). Other than that very straightforward and well done.
      MAPLEDESIGN MODX development and MODX web design and custom development. Proud to serve UK and International clients!
      • 29635
      • 361 Posts
      Quote from: Peter at Jun 04, 2010, 02:58 AM

      I like it Brett! The one thing I’m not clear about is how you manage to use jQuery directly in json-builder.js without it conflicting with mootools (I’ve always had to drop into jquery.noconflict() mode and use $j as my reference). Other than that very straightforward and well done.
      If you find it straightforward, you are a better man than I wink

      I believe that there’s a noConflict() call elsewhere (MM, perhaps?), which is probably why you don’t see it in the code I uploaded.
        Need MODx Ecommerce? Try FoxyCart!
        • 22897 ☆ A M B ☆
        • 209 Posts
        Quote from: The at Jun 04, 2010, 03:05 AM

        If you find it straightforward, you are a better man than I wink
        Heh, I did until I realised the Javascript had been written for use with the index.html code, and not actually the MODx tv plugin wink

        Do you have a copy of json-builder.js that’s designed to work with plugin.JSONTV Builder.php?
          MAPLEDESIGN MODX development and MODX web design and custom development. Proud to serve UK and International clients!
          • 29635
          • 361 Posts
          Quote from: Peter at Jun 05, 2010, 06:00 AM

          Quote from: The at Jun 04, 2010, 03:05 AM

          If you find it straightforward, you are a better man than I wink
          Heh, I did until I realised the Javascript had been written for use with the index.html code, and not actually the MODx tv plugin wink

          Do you have a copy of json-builder.js that’s designed to work with plugin.JSONTV Builder.php?
          I’m pretty sure it’s in one of those two zips. If not, PM me and I’ll help get you all the stuff you need, including access to it in production if you want to check it out.
            Need MODx Ecommerce? Try FoxyCart!
            • 9757
            • 82 Posts
            Is that marvellous add-on compatible with Evo 1.0.4 ?
              • 18893
              • 45 Posts
              Hi! How can I add this feature to an already installed MODx?
                • 22897 ☆ A M B ☆
                • 209 Posts
                @fixedmachine: I’ve not yet tried it with 1.0.4, but from a cursory glance at the changelog there’s nothing that should stop it from functioning.

                @McGregor - the best way is to apply the diff to your existing MODx installation (after making a backup of course!). Failing that, it only needs a few files copying across to your exisitng installation to add this feature. When I get a minute I’ll document this - maybe on the train to a conference on Friday smiley
                  MAPLEDESIGN MODX development and MODX web design and custom development. Proud to serve UK and International clients!
                  • 18893
                  • 45 Posts
                  Ok, write please, when will be able.
                    • 9757
                    • 82 Posts
                    Hmm. I’ll try that with 1.0.4 and we’ll see smiley But when I was trying to patch 1.0.3 there were errors. So I’ve just copied whole files from your pre-patched MODx distro.

                    In 1.0.3 I’ve found that there is a problem with jQuery from ManagerManager. I’m talking about the sample FAQs custom TV. The colorbox declaration is injected by your custom code into the header. But ManagerManager inserts jQuery declaration inside body. So we got an error about undeclared jQuery, and we see popup.php content not in the colorbox, but inside the frame. That’s a small problem in your sample code, but it can be confusing.

                    I saw that you’re using upload form (uploadify?) inside a custom TV. What do you think, is that possible to make an uploadify TV for uploading many different documents (doc,pdf,...) for MODx document? Could you send your code from that upload form from your gallery TV for the community as an example?
                      • 16545
                      • 358 Posts
                      Waiting for 1.0.4 wink