2012-07-31, 15:24:43
(This post was last modified: 2012-07-31, 16:01:17 by kuba.sanitrak.)
Anyone have any ideas on how to implement a "menuOrder" order option or similar with I18N Special Pages? If it's not on the upcoming features list I would like to implement this on an existing website ASAP.
Edit: Think I sorted it out myself, (if this makes any sense) in /plugins/i18n_search/searcher.class.php:
I would love if your plugins were all on github or bitbucket mvlcek, then we could contribute if you're into that.
Edit: Think I sorted it out myself, (if this makes any sense) in /plugins/i18n_search/searcher.class.php:
Code:
...
275. private function compare_menuorder($a, $b) {
276. $r = $a->menuOrder - $b->menuOrder;
277. return $r != 0 ? $r : strcmp($a->fullId, $b->fullId);
278. }
279.
280. private function is_word($line, $word, $ismb) {
...
439. case 'reversecreated': usort($filteredresults, array($this,'compare_reversecreated')); break;
440. case 'menuorder': usort($filteredresults, array($this,'compare_menuorder')); break;
441. case 'score':
...
I would love if your plugins were all on github or bitbucket mvlcek, then we could contribute if you're into that.