• tvEditor beta 0.8.5#

  • heliotrope Reply #1, 4 years, 10 months ago

    Reply
    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 itcamelCase)
    - 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 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.


  • raum Reply #2, 4 years, 10 months ago

    Reply
    looks great!
    can´t await testing it ...


  • mmjaeger Reply #3, 4 years, 10 months ago

    Reply
    is there a download link somewhere or did I just miss it?


  • heliotrope Reply #4, 4 years, 10 months ago

    Reply
    Sorry I forgot to attach the files
    first post updated


  • mmjaeger Reply #5, 4 years, 10 months ago

    Reply
    Quote from: heliotrope at Jul 11, 2007, 02:19 PM
    Sorry I forgot to attach the files
    first post updated

    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


  • heliotrope Reply #6, 4 years, 10 months ago

    Reply
    Quote from: mmjaeger at Jul 11, 2007, 03: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 #95 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;




  • mmjaeger Reply #7, 4 years, 10 months ago

    Reply
    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


  • heliotrope Reply #8, 4 years, 10 months ago

    Reply
    My bad This error should go away once you run the installer

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

    See my first post.

    :-)




  • mmjaeger Reply #9, 4 years, 10 months ago

    Reply
    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?


  • heliotrope Reply #10, 4 years, 10 months ago

    Reply
    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.

    :-)