We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49560
    • 28 Posts
    Alright, I can't figure it out on my own atm. I've only used the Tabs/Columns areas for my TV's, would you be so kind and give me a small example?

    This is basically what it looks like currently:
    Configuration:
    
    -empty-
    

    Tabs:
    
    [
    {"caption":"tabname", "fields":[
    {"field":"fieldname","caption":"captionname","inputTVtype":"listbox","inputOptionValues":"@EVAL return $modx->runSnippet('getChildrenOptions');"}
    ]}
    ]
    


    Columns:
    
    [
    {"header":"headername","dataIndex":"fieldname","renderer":"this.renderChunk"}
    ]
    
      Alex G - Application Development Apprentice | New MODX User
      codeblick media
      • 4172
      • 5,888 Posts
      Create a MIGX - Configuration in the MIGX - CMP
      Give that configuration the name mymigxconfig1
      Configure your formtabs and columns there.

      Configuration:
      
      mymigxconfig1


      Tabs:
       
      -empty-


      Columns:
       
      -empty-


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

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 49560
        • 28 Posts
        Ahh, alright, with a little more research I've managed to do it, thanks smiley

        Now strange stuff is happening:

        fyi: I've added a additional row to your getChildren snippet to allow an "empty" value, which doesn't seem to cause the problem:
        $output[] = 'None.' . '==' . 'false';


        Apparently the getPagetitle doesn't just replace the ID with the Pagetitle in the grid, it also replaces the variable itself.

        If I output the ID in the frontend with the renderChunk (with the snippet call) deactivated it displays the ID.
        If renderChunk is active it displays the pagetitle in the frontend.

        If renderChunk deactivated it displays e.g.: "20/false/30". And I can choose between "None./Name_Of_ID_20/Name_Of_ID_30". Which is correct.
        If renderChunk active: it displays "Home/Home/Home". I can choose between "None./Name_Of_ID_20/Name_Of_ID_30/Home", but Home always gets automatically selected.

        I hope this explanation is unerstandable and I appreciate your efforts smiley
          Alex G - Application Development Apprentice | New MODX User
          codeblick media
          • 4172
          • 5,888 Posts
          Quote from: Bruno17 at Dec 18, 2014, 09:49 AM
          there are sevaral discussions/posts which handles about that request.

          you can use the renderChunk - renderer for a new column (give it another, unused name than your resourceIdField), but then I would use the MIGX - configurator to create the configuration for that TV.

          you created a new column with another, unused name?
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 4172
            • 5,888 Posts
            And try:

            $output[] = 'None.' . '==';


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

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 49560
              • 28 Posts
              Yes! That was exactly my mistake this time, I gave it the same name, now everything works like a charm. Thank you Bruno! smiley
                Alex G - Application Development Apprentice | New MODX User
                codeblick media