Definitely a problem. Menu 11 and Menu 12 aren't displayed.
In fact, they aren't in the DOM at all, Firebug only has 10 li elements in the "Extras" child ul.
* @param integer $limit (optional) The number of records to limit to. Defaults
* to 10.
...
public function initialize() {
$this->setDefaultProperties(array(
'limit' => 10,
'id' => '',
));
$id = $this->getProperty('id');
$this->setProperty('id', str_replace('n_','',$id));
return parent::initialize();
}
Ok... core/model/modx/processors/system/menu/getnodes.class.php arbitrarily sets the limit to 10.Quote from: sottwell at Jan 02, 2015, 09:07 PM
Interesting. The parent class, modObjectGetListProcessor, has a limit of 20.Weird. Why is there any limit at all??? I got rid of the line "'limit' => 10," and now they all show up (until I reach 20, I guess!).
I got rid of the line "'limit' => 10," and now they all show up (until I reach 20, I guess!).Set the 'limit' to any limit you want for it to override that parent class default of 20. It just ends up being used in a getCollection query.
Interesting. I have 12 Extras showing in MODX 2.2.13.I don't see how it's doing it, the code is a little different there, but it still sets a default limit of 10 in getnodes.class.php
$limit = $modx->getOption('limit',$scriptProperties,10);
$isLimit = !empty($scriptProperties['limit']);
if ($isLimit) $c->limit($limit,$start);
Quote from: BobRay at Jan 03, 2015, 01:21 AMQuote from: sottwell at Jan 03, 2015, 03:28 AMInteresting. I have 12 Extras showing in MODX 2.2.13.I don't see how it's doing it, the code is a little different there, but it still sets a default limit of 10 in getnodes.class.php
and then later,
if ($isLimit) $c->limit($limit,$start);