We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16313
    • 71 Posts
    Hi Bruno!
    I have some problems with image type TV in xdbedit. When I choose it, all tabs disappear and I see all fields on the one page.
    Another question about lexicon.
    Quote from: Bruno17 at Dec 07, 2010, 10:01 AM

    for the lexicon-key when you create the menue-entry you can use what you want.
    This is used only for the components-menue-caption.
    when you use ’telephonedir’ and there is no lexicon-entry modx uses ’telephonedir’

    when you have an lexicon-entry for example
    $_lang['telephonedir'] = 'Telefonliste';
    in your language, modx will use ’Telefonliste’ as menue-caption.
    If I created menu with lexicon key "xdbedit", what should I do than for using default.inc.php in lexicon folder?
    thanks


      • 16313
      • 71 Posts
      The same problem I found with file TV type
        • 11076
        • 159 Posts
        Umm.. and so i thought of trying xdbedit, starting with the provided example (telephonelist).

        I’ve Downloaded all the project files zipped from github ,put them in place:

        • core\components\example
        • core\components\xdbedit

        And followed the wiki instructions:
        I. Finished the first stage (`The Installation`), all the namescape,menu,action related stuff.
        II. Going through the second stage (`Creating your own table-editor with xdbedit`), skipping steps 1-5. completing steps 6-7.
        III. Went to the `mytask` option under the components>custom-table-editor and right before my eyes, there it was: an empty custom table CMP.
        Seems very nice, looks very handy. awesome job you’ve made there Bruno, thanks.

        A small problem i came across is:
        When i was trying to add some data i couldn’t make changes and hitting the Save button didn’t fired nothing.
        I’m on 2.0.7-pl.

        Any hints?
        maybe it’s related with the `datum` tv?
          Michael Shraibman( gOmp)  | Freelance Design & Development | wink  impossible is nothing...
          • 4172
          • 5,888 Posts
          A small problem i came across is:
          When i was trying to add some data i couldn’t make changes and hitting the Save button didn’t fired nothing.
          I’m on 2.0.7-pl.

          How far did you come in detail?
          any screenshots/request/response datas you can show?
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 11076
            • 159 Posts
            You can see it by yourself, I’ve made a short screencast:
            http://screenr.com/eMf
            you can see there, me trying to add data and the save button doesn’t do anything.
            then i refresh manually to load the page and see everything is still fresh without any data saved.


            and about everything else,
            here’s some print screens (all of this gallery) i’ve made:
            http://min.us/mveKQZl
            (you can add them to the wiki for visualization if you wish)

              Michael Shraibman( gOmp)  | Freelance Design & Development | wink  impossible is nothing...
              • 11076
              • 159 Posts
              forget this one laugh (modx’s error log)
              [2011-02-13 12:44:44] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class: Telephonedir from mysql.telephonedir.
              [2011-02-13 12:44:44] (ERROR @ /206pl/assets/components/xdbedit/connector.php) No class specified for loadClass
              [2011-02-13 12:44:44] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Path specified for package example is not a valid or accessible directory: D:/WWWDev/server/xampp/htdocs/206pl/core/components/example/model/
              [2011-02-13 12:44:44] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class: Telephonedir from mysql.telephonedir.
              [2011-02-13 12:44:44] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class 
              [2011-02-13 12:44:44] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class: Telephonedir from mysql.telephonedir.
              [2011-02-13 12:44:44] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Telephonedir::loadCollection() is not a valid static method.
              [2011-02-13 12:44:44] (ERROR @ /206pl/assets/components/xdbedit/connector.php) No class specified for loadClass
              [2011-02-13 12:44:44] (ERROR @ D:\WWWDev\server\xampp\htdocs\206pl\core\components\xdbedit\processors\mgr\telephonedir\getregions.php : 35) PHP warning: Invalid argument supplied for foreach()
              [2011-02-13 12:44:45] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class: Telephonedir from mysql.telephonedir.
              [2011-02-13 12:44:44] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class !
              [2011-02-13 12:44:45] (ERROR @ /206pl/assets/components/xdbedit/connector.php) No class specified for loadClass
              [2011-02-13 12:44:45] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class: Telephonedir from mysql.telephonedir.
              [2011-02-13 12:44:45] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class: Telephonedir from mysql.telephonedir.
              [2011-02-13 12:44:45] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class Telephonedir
              [2011-02-13 12:44:45] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class: Telephonedir from mysql.telephonedir.
              [2011-02-13 12:44:45] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Telephonedir::loadCollection() is not a valid static method.
              [2011-02-13 12:44:45] (ERROR @ D:\WWWDev\server\xampp\htdocs\206pl\core\components\xdbedit\processors\mgr\telephonedir\getlist.php : 61) PHP warning: Invalid argument supplied for foreach()
              [2011-02-13 12:44:46] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Path specified for package example is not a valid or accessible directory: D:/WWWDev/server/xampp/htdocs/206pl/core/components/example/model/
              [2011-02-13 12:44:46] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class: Telephonedir from mysql.telephonedir.
              [2011-02-13 12:44:46] (ERROR @ /206pl/assets/components/xdbedit/connector.php) No class specified for loadClass
              [2011-02-13 12:44:46] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class 
              [2011-02-13 12:44:46] (ERROR @ /206pl/assets/components/xdbedit/connector.php) No class specified for loadClass
              [2011-02-13 12:44:46] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class !
              [2011-02-13 12:44:46] (ERROR @ /206pl/assets/components/xdbedit/connector.php) No class specified for loadClass
              [2011-02-13 12:44:46] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class: Telephonedir from mysql.telephonedir.
              [2011-02-13 12:44:46] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class: Telephonedir from mysql.telephonedir.
              [2011-02-13 12:44:46] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class Telephonedir
              [2011-02-13 12:44:46] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not load class: Telephonedir from mysql.telephonedir.
              [2011-02-13 12:44:46] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Telephonedir::loadCollection() is not a valid static method.
              [2011-02-13 12:44:46] (ERROR @ D:\WWWDev\server\xampp\htdocs\206pl\core\components\xdbedit\processors\mgr\telephonedir\getlist.php : 61) PHP warning: Invalid argument supplied for foreach()
              [2011-02-13 12:45:45] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Error 42S02 executing statement: 
              Array
              (
                  [0] => 42S02
                  [1] => 1146
                  [2] => Table 'revdev_db.modx_example_telephonedir' doesn't exist
              )
              
              [2011-02-13 12:45:45] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Error 42S02 executing statement: 
              Array
              (
                  [0] => 42S02
                  [1] => 1146
                  [2] => Table 'revdev_db.modx_example_telephonedir' doesn't exist
              )
              
              [2011-02-13 12:45:45] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Could not create table `modx_example_telephonedir`
              SQL: CREATE TABLE `modx_example_telephonedir` (`id` INTEGER unsigned NOT NULL AUTO_INCREMENT,`name` VARCHAR(255) NOT NULL DEFAULT '',`jobtitle` VARCHAR(255) NOT NULL DEFAULT '',`region` VARCHAR(255) NOT NULL DEFAULT '1',`published` TINYINT(1) unsigned NOT NULL DEFAULT '0',`createdby` INT(10) NOT NULL DEFAULT '0',`createdon` DATETIME NOT NULL,`editedby` INT(10) NOT NULL DEFAULT '0',`editedon` DATETIME NOT NULL,`deleted` TINYINT(1) unsigned NOT NULL DEFAULT '0',`deletedon` DATETIME NOT NULL,`deletedby` INT(10) NOT NULL DEFAULT '0',`publishedon` DATETIME NOT NULL,`publishedby` INT(10) NOT NULL DEFAULT '0', PRIMARY KEY (`id`)) ENGINE=MyISAM
              ERROR: Array
              (
                  [0] => 42S01
                  [1] => 1050
                  [2] => Table 'modx_example_telephonedir' already exists
              )
              
              [2011-02-13 12:45:45] (ERROR @ /206pl/assets/components/xdbedit/connector.php) Error 42S01 attempting to create object container for class Telephonedir:
              Array
              (
                  [0] => 42S01
                  [1] => 1050
                  [2] => Table 'modx_example_telephonedir' already exists
              )
              
              

              rolleyes small note: first i forgot to put in place `example` directory, tried it and then remembered i forgot and placed the example dir to the right place.
                Michael Shraibman( gOmp)  | Freelance Design & Development | wink  impossible is nothing...
                • 31946
                • 116 Posts
                This is just great, many thanks Bruno=)
                I have a problem using Image-TV’s or File-TV’s..

                My Grid is working fine with RichText-TVS, Combobox etc.
                For a Product-Image, i want to use an Image-TV.
                If i put the name of the Image-TV in the
                config file, my Grid isn’t working right (no Tabs, no other TV’s working).

                I have the following Error displayed in my Console (see Screenshot)

                Can anybody help me out?

                Thanks much!
                  • 4172
                  • 5,888 Posts
                  hmm....
                  I can use image-TV in xdbedit without probs.
                  Tested it just now with the telephone-example.
                  changed the name-field to use a image-TV as input-type.

                  My test-config for that field is:

                  array(
                                      'caption'=>'Contact',
                                      'fields'=>array(
                                      array(
                                          'field'=>'name',
                                          'caption'=>'Name',
                                          'inputTV'=>'image'
                                      )............


                  sorry, I cannot reproduce that on mine.
                  Which version of revo? Do you have that project online?




                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 16313
                    • 71 Posts
                    Hello Bruno!
                    Now I use your component very often. Many thanks!
                    How can I insert my array with some data into your table grid?
                     
                    $criteria = new xPDOCriteria($modx, "SELECT * FROM modx_site_tmplvar_contentvalues WHERE BINARY `value` LIKE '%".$key."%' AND tmplvarid = 1");
                            $stmt = $criteria->prepare();
                            if ($stmt && $stmt->execute()){ 
                                $result = $stmt->fetchAll(PDO::FETCH_ASSOC); 
                    .................
                    
                      • 31946
                      • 116 Posts
                      Quote from: Bruno17 at Feb 16, 2011, 02:23 PM

                      hmm....
                      I can use image-TV in xdbedit without probs.
                      Tested it just now with the telephone-example.
                      changed the name-field to use a image-TV as input-type.

                      My test-config for that field is:

                      array(
                                          'caption'=>'Contact',
                                          'fields'=>array(
                                          array(
                                              'field'=>'name',
                                              'caption'=>'Name',
                                              'inputTV'=>'image'
                                          )............


                      sorry, I cannot reproduce that on mine.
                      Which version of revo? Do you have that project online?


                      Thanks for your answer.
                      I’m running revo 2.0.7 on a default xammp installation with mac. The project ist not yet online :/
                      I made exactly the same change as you with your telephonedir-example an i’m getting the same error.
                      I’ve made two screenshots, one before adding the image-tv to the name filed, the second afterwards...
                      Seems that modx does not load the ExtJs stuff right? Very strange...
                      At least i know it must be a specific problem... thank you! Will make more tests...

                      Grüsse aus der Schweiz laugh