We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4172
    • 5,888 Posts
    you can use mysql-union to combine an empty row with your result.
    I would use a snippet, something like that:

    <?php
    $parent='3';
    $sortby='pagetitle';
    
    $c = $modx->newQuery('modResource');
    $c->where(array('parent'=>$parent));
    $c->sortby($sortby);
    $collection = $modx->getCollection('modResource',$c);
    
    $output='kein Artikel==0';
    foreach ($collection as $o){
    $output .= '||'.$o->get('pagetitle').','.$o->get('publishedon').'=='.$o->get('id');
    }
    return $output;
    


    or getResources or rowBoat for other tables to create the options-list.
      -------------------------------

      you can buy me a beer, if you like MIGX

      http://webcmsolutions.de/migx.html

      Thanks!
      • 37567
      • 13 Posts
      hey bruno,

      What is the solution for the auto-tag TV input type for MIGX.

      Thanks for your input
        • 37567
        • 13 Posts
        hey bruno,

        What is the solution for the auto-tag TV input type for MIGX.

        Thanks for your input
          • 4172
          • 5,888 Posts
          the auto-tag TV isn't supported in MIGX
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 38011
            • 4 Posts
            Hi everyone! I'm a web designer working on my first modx website. I'm using MIGX to upload multiple images for a slide (nivo slider). I had have everything working like a charm, the extension is really was I was looking for, but suddenly the backend started to fail. Clicking the "add item" button just loads an empty popup with only the h2 title "TV". The html code of that shows a lots of divs and inside of them an empty form. I`ve read the migx threads without finding something like this, I've read of failures on the backend but those that triggers and error message, I'm just getting an empty popup. I`ve already updated migx to latest version with no luck, I bet is a newbie mistake, but I'm pretty lost alone with this.

            I'm using modx revo 2.1.3.pl

            My TV for migx is called dm-portfolioSliderImgTV, input type: migx, with this form tabs:
            [{
            "caption":"Image", "fields":"[
            {"field":"title","caption":"Title","description":"of the slide."},{"field":"imgUrl","caption":"Image","inputTV":"image"}]"
            }]


            and this grid columns:
            [
            {"header":"Title","width":"20","sortable":"true","dataIndex": "title"}, 
            {"header":"Image","width":"20","sortable":"false","dataIndex": "image","renderer":"this.renderImage"}]


            The output type is text. I'm calling the TV with this code in the template:
            [[!getImageList?
            &tpl=`dm-portfolioSliderImg`
            &tvname=`dm-portfolioSliderImgTV`
            &toSeparatePlaceholders=`MIGX`
            ]]
            [[+MIGX.0]]
            [[+MIGX.1]]
            [[+MIGX.2]]
            [[+MIGX.3]]
            [[+MIGX.4]]
            [[+MIGX.5]]
            


            where dm-portfolioSliderImg chunk is:
            <img src="[[+imgUrl]]" alt="[[+title]]" width="320px" height="240px"/>


            Can anyone give me a hand with this? sorry but the website is still local. Please let me know if you want to see more code [ed. note: dmigliorelli last edited this post 14 years, 9 months ago.]
              • 4172
              • 5,888 Posts
              can you post the response (from firebug), what you get after clicking 'add item', please.
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 22840
                • 1,572 Posts
                Having major problems trying to get my head round this so if someone could help me out that would be great.

                What I need it to be able to create a tr on the fly so a client can simply add a new one, the tr will consist of 5 td's can I add the 5td's as a default value so that the client can just click a button to add more ?

                Thanks
                  • 4172
                  • 5,888 Posts
                  I'm not sure to understand you correctly...

                  If you have 5 fields, one for each
                  <td>
                  you want to have a default value, for each
                  <td> 
                  another one.

                  when he clicks add new item, the fields should be filled with that default-values and he can change them, when needed?
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 22840
                    • 1,572 Posts
                    Hi Bruno,

                    I think my problem is I dont understand the addon.

                    What I want to do is create a chunk with the top table code in it, then the call to the MIGX and then the bottom table bit, then when the client want's to add a new table row he simply clicks a button to add the new tr td and simply fills in the details but as I've said I have no idea how to set it up ;(
                      • 4172
                      • 5,888 Posts
                      Mark Hamstra made a nice Tut, which does exactly that:
                      http://rtfm.modx.com/display/ADDON/MIGX.Simple+opening+hours+table
                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!

                      This discussion is closed to further replies. Keep calm and carry on.