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 Folks,

    Here is tveditor.
    (for detailed features see screenshots)

    what is tvEditor:
    tvEditor is a GUI for tv options editing.
    Dropdown, listbox, option, listbox-multiple and radio are supported (even those containing @BINDINGS)
    You can edit, add, sort tvoptions.
    You can search documents for each tvs or create custom forms.

    INSTALLATION:

    Step 1:

    - unzip tvEditor.zip
    - upload in assets/modules/ the tvEditor folder (keep the name as it is=>camelCase)
    - Create a new module => tveditor
    Copy and paste this line in the content
    include_once($modx->config['base_path'] . "/assets/modules/tvEditor/tveditor.module.php");


    Step 2:

    In tvEditor/snippets/ You will find several snippets
    1/tvExplorer
    2/tve_splitPagination
    3/tve_AjaxSearch

    Install each of them, keep their name as mentioned above.

    To execute ditto in the backend you need to change one line in ditto.class.inc.php .
    This will not affect ditto in any manner
    In the buildURL() function
    Change:
    $url = $modx->makeURL(trim($cID), ’’, $queryString);
    to:
    //$url = $modx->makeURL(trim($cID), ’’, $queryString);
    $url = (isset($modx->documentObject[’id’])) ? $modx->makeURL(trim($cID), ’’, $queryString) : ’index.php?id=’.$GLOBALS[’modID’].$queryString;


    Add the extenders=> tve.extenders.inc.php et tvefilter.extenders.inc.php
    (they are in the ditto_extenders folder) in your assets/snippet/ditto/extenders.

    Once done:
    -Execute le tvEditor Module
    Click on the install button
    This will add to your db the required chunk.

    Once the module is installed, check in the configuration tab if ditto name match the name of ditto on your installation.

    Now you can easily edit tv options

    :-)
    there are some options but my english is much too bad to give you the details

    NOTE: Ditto2 is mandatory
    TVs with multiple values (checkbox, listbox-multiple) must have widgets set to delimited list with value = ’,’
    No other widgets is supported


    SCREENSHOTS:

    TVs List:
    Columns can be sorted.



    TV options list



    Edit tv options



    Edit single option



    Add new options



    Sort options values



    Search document per tv



    Form builder


    Step 1: choose your template



    Step 2: choose the tvs you want to search



    Step 3: find the documents which matches your criteria



    Etape 4 : Edit TV values
    And you can edit the tvs value from the list with QE



    Toutes les étapes s’effectuent sans recharger la page grace a AJAX.
      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
      • 24530
      • 100 Posts
      looks great!
      can´t await testing it ...
        my newest webpage [url=http://gitarren.zucali.at]Meisterwerkstatt f
        • 19889
        • 616 Posts
        is there a download link somewhere or did I just miss it?
          • 11975
          • 2,542 Posts
          Sorry I forgot to attach the files
          first post updated
          ;D
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 19889
            • 616 Posts
            Quote from: heliotrope at Jul 11, 2007, 07:19 PM

            Sorry I forgot to attach the files
            first post updated
            ;D

            just trying to install it but I seem to have some problems:

            Warning: Invalid argument supplied for foreach() in C:\Documents and Settings\Marco M. Jaeger\My Documents\My Web Sites\www\cms\modx\assets\modules\tvEditor\class\tveditor.class.php on line 1233

            moreover you’re pointing to a line in the ditto class that doesn’t exist: //$url = $modx->makeURL(trim($cID), ’’, $queryString);

            note there is a trim now

            hope we get this going so I can try it out
              • 11975
              • 2,542 Posts
              Quote from: mmjaeger at Jul 11, 2007, 08:00 PM


              Warning: Invalid argument supplied for foreach() in C:\Documents and Settings\Marco M. Jaeger\My Documents\My Web Sites\www\cms\modx\assets\modules\tvEditor\class\tveditor.class.php on line 1233

              Fixed
              Download updated files in my first post
              you only have to change class/tveditor.class.php


              moreover you’re pointing to a line in the ditto class that doesn’t exist: //$url = $modx->makeURL(trim($cID), ’’, $queryString);

              note there is a trim now

              hope we get this going so I can try it out

              You ’re right
              Now the line (around #958) in ditto class looks like
              //$url = $modx->makeURL(trim($cID), ’’, $queryString);

              change it to:
              $url = (isset($modx->documentObject[’id’])) ? $modx->makeURL(trim($cID), ’’, $queryString) : index.php?id=’.$GLOBALS[’modID’].$queryString;


                Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                • 19889
                • 616 Posts
                now I’m getting this one:

                Warning: array_merge() [function.array-merge]: Argument #1 is not an array in C:\Documents and Settings\Marco M. Jaeger\My Documents\My Web Sites\www\cms\modx\assets\modules\tvEditor\class\tveditor.class.php on line 1303
                  • 11975
                  • 2,542 Posts
                  My bad grin
                  This error should go away once you run the installer

                  Whatever i’ve fixed the error in tveditor.class.php

                  See my first post.

                  :-)


                    Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                    • 19889
                    • 616 Posts
                    I’m afraid I already ran the installer before the update - I don’t see the install button anymore - what do I have to do now?
                      • 11975
                      • 2,542 Posts
                      This should be fixed in 0.8.5.2 (files attached to first post)

                      Anyway , if you need to reinstall tveditor in case you delete some of the required chunk.
                      Just change the param tve installed in the module configuration tab.
                      Set it to 0 and run the module.

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