We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18174
    • 116 Posts
    How about to implement parent_id in resource grid?
    This would be a big improvement to sort at least by the parent_id and would improve the usability of batcher.
    I suppose it's pretty simple, resource.grid.js: add "parent" to the field list, add "parent" to columns
            ,fields: ['id','parent','pagetitle','template','templatename','alias','deleted','published','createdon','editedon','hidemenu']
            ,paging: true
            ,autosave: false
            ,remoteSort: true
            ,autoExpandColumn: 'pagetitle'
            ,cls: 'batcher-grid'
            ,sm: this.sm
            ,columns: [this.sm,{
                header: _('id')
                ,dataIndex: 'id'
                ,sortable: true
                ,width: 60
            },{
                header: _('parent')
                ,dataIndex: 'parent'
                ,sortable: true
                ,width: 60
            },{

    BTW: where's the common target to place a request/bug add_ons/components so that it is heard from the author?
    I often miss this link.
      • 37261 ☆ A M B ☆
      • 113 Posts
      The ability to filter by any combination of fields would be more useful. Such as parent:3 and/or published_on:date

      I believe most of splittingred's extras have been adopted by MODX. Although this one wasn't announced, I would submit the feature request on the MODX github page rather than the original developer's: https://github.com/modxcms/Batcher
        • 3749
        • 24,544 Posts
        I see that something similar was done with the 'editedon' field recently, so Batcher is still alive. A pull request would probably be appreciated.

          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting