Search code examples
modxmodx-revolutionmodx-resources

Modx Redirector plugin limited resource list


Redirector plugin created by Shaun McCormick is a little outdated and I noticed that a bug appeared where not all resources showed up. enter image description here


Solution

  • I first went to the repository to commit a fix in but the file annoyingly isn't being tracked. https://github.com/splittingred/Redirector

    Fix:

    Open: /core/componenets/redirector/processors/mgr/resources/getlist.class.php

    Then add an initiator method:

    public function initialize() {
        $this->setDefaultProperties(array(
            'start' => 0,
            'limit' => 0,
            'sort' => $this->defaultSortField,
            'dir' => $this->defaultSortDirection,
            'combo' => false,
            'query' => '',
        ));
    
        return true;
    }
    

    And that should be it. All resources will now show up.