Hello,
Iam not an PHP/Object diehard, so maybe someone with a little knowledge about the modxprocessor.class.php can help me.
In the addon 'Redirector' you can select the resource you want the redirect to goto:
I the picture below you see the create Redirect popup.
In the folder core/components/redirector/processors/mgr/resources/getlist.class.php i found the script that makes this resource list. But how can i change the limit of resources it outputs. Now it seems to stop at 20 rows.
The script getlist.class.php has this code.
<?php
class ResourcesGetListProcessor extends modObjectGetListProcessor {
public $classKey = 'modResource';
public $languageTopics = array('redirector:default');
public $defaultSortField = 'pagetitle';
public $defaultSortDirection = 'ASC';
public $objectType = 'modresource';
public function prepareQueryBeforeCount(xPDOQuery $c) {
$query = $this->getProperty('query');
if(!empty($query)) {
$c->andCondition(array(
'id' => $query,
'OR:pagetitle:LIKE' => '%'.$query.'%',
));
}
return $c;
}
public function prepareRow(xPDOObject $object) {
$arr = $object->toArray();
$arr['pagetitle'] .= ' ('.$object->get('context_key').', '.$object->get('id').')';
return $arr;
}
}
return 'ResourcesGetListProcessor';
I know changing a Addon is not smart and will not work after updating. But i allready noticed on this forum Redirector is not working for 2.3. (i think its not supported anymore by the creators) The customer allready is aware it maybe not update safe but wanted it working in his 2.2.15 version....
Hope some can help...