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

    once you have created tvEditor Module in the manager.
    Run tvEDitor and you ’ll see an install button, Just click it smiley
    This will add the needed chunks.

    :-)
      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
      • 18367
      • 834 Posts
      Ok,

      I’ve done that, two things happen.

      1: I get an error messag
      No Tvs were found.
      Note that only TVs which type is (listbox,listbox-multiple,checkbox,option,dropdown).

      2: A whole load of tv chunks appear in the chunks section with the word (Locked) after them.
        Content Creator and Copywriter
        • 11975
        • 2,542 Posts
        1. It’s a warning since tvEditor needs existing tvs to show something smiley
        As the message says only the following type (listbox,listbox-multiple,checkbox,option,dropdown) are supported

        2. Nothing weird
        They are locked to make them editable only by an admin user

        :-)
          Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
          • 18367
          • 834 Posts
          Ok? That still leaves me nowhere to go.

          In your install instructions it says
          Now you can easily edit tv options

          But obviously pressing on Edit Options won’t allow this at this stage.

          Did I miss a step?
            Content Creator and Copywriter
            • 11975
            • 2,542 Posts
            Go to resources > templates variables.
            Create a tv : type listbox for instance.
            then go to tvEditor and then you ’ll be able to add options easily without wrint || ==

            :-)
              Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
              • 18367
              • 834 Posts
              OK, done that, it works, I feel like I’ve just put my toe in a very big ocean and I need a lifeguard. (Pammy?) laugh

              Anyway, the reason I’m persevering with tveditor is that I asked in another thread about how to search and display data from a database on a webpage. And someone said it could be done in tvexplorer/tveditor. However, they didn’t quite know how to do it.

              IF someone’s willing to guide me through this, I’ll write it up as a tute and then those that come after us will have something to follow.

                Content Creator and Copywriter
                • 11975
                • 2,542 Posts
                tvExplorer allows you to create advenced serach form based on tvs, parent tree and keywords (full text).
                Its scope is limited to modx documents and tvs. It doesn’t work with other tables.

                :-)
                  Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                  • 18367
                  • 834 Posts
                  Oh, shocked the two examples you provided on the tvexplorer thread looked pretty close to what I was after.

                  But if I understand you correctly, you’re saying this can’t be done if the info is in a db, even if it is integrated into modx?

                  Is that right?

                    Content Creator and Copywriter
                    • 11975
                    • 2,542 Posts
                    Indeed it only works for modx documents since the results are rendered using Ditto.

                    :-)


                      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                      • 19975
                      • 429 Posts
                      Hi,

                      I’m trying to install tvEditor but am reciving the following error within the admin area:

                      Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/xxxxxxx/public_html/assets/snippets/ditto/classes/ditto.class.inc.php on line 1030

                      Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/xxxxxxx/public_html/assets/snippets/ditto/classes/ditto.class.inc.php on line 1030

                      Within the front end i’m also getting the following error message:

                      « MODx Parse Error »

                      MODx encountered the following error while attempting to parse the requested resource:
                      « PHP Parse Error »

                      PHP error debug
                      Error: Invalid argument supplied for foreach()
                      Error type/ Nr.: Warning - 2
                      File: /home/xxxxxxx/public_html/assets/modules/tvEditor/class/tveditor.class.php
                      Line: 785
                      Line 785 source: foreach($tvFormElements as $name => $element){

                      Parser timing
                      MySQL: 0.0007 s (5 Requests)
                      PHP: 0.0625 s
                      Total: 0.0632 s


                      I’ve searched high and low without any luck sad any help very welcome.

                      Using ditto 2.1.0 with modx 0.9.6.3.

                      Martin

                        Martin Sanders - Design & Web Development