We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39498
    • 169 Posts
    how to add a view-contextmenue to MIGXdb
      • 4172
      • 5,888 Posts
      what exactly should happen after clicking 'view'?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 39498
        • 169 Posts
        the ressource should be shown (as link in a new tab, as preview), as in the normal resource view
          • 39498
          • 169 Posts
          I mean the view in a cmp
            • 4172
            • 5,888 Posts
            I think the easiest way is to create a new column in the grid with a renderChunk - renderer
            and one renderOption with the name of a chunk.
            The chunk should have a content like that:
            <a href="[[~[[+id]]? &scheme=`full`]]" target="_blank">View</a> 
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 39498
              • 169 Posts
              Does this concern MIGX 2.4.0 beta3?
              I am working with 2.3.2 pl.
              Save to manualy upgrade?
                • 39498
                • 169 Posts
                did an upgrade.
                chose the renderChunk - renderer, with renderOption chunkname as name. But do not get an output in the column. Did I miss any further config? Tried some but no success.
                  • 4172
                  • 5,888 Posts
                  you did create a new column with a fieldname for example: viewlink

                  you did create only one renderOption with a name for example: renderViewLink

                  and you did create a chunk with name: renderViewLink

                  and you added this into the chunk?

                  <a href="[[~[[+id]]? &scheme=`full`]]" target="_blank">View</a>


                  and you got an empty column?

                  which getlist-processor is your grid calling?

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

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 39498
                    • 169 Posts
                    thanks, thats it.
                    Had a custom processor, which did not get upgraded. after substituiting it with the new getlist all get rendered fine.

                    I just need a custom update processor, but copied the whole childresources folder. I now deleted all other files.
                      • 4172
                      • 5,888 Posts
                      you need this line at the end of the getlist-processor-file:

                      $rows = $modx->migx->checkRenderOptions($rows);
                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!