Hi Martijn,
I use the CategoryMenuPanel as in your product admin example. What I noticed is that all categories are shown, but I have some canView() lines for that DataObject.
So i added to line 37 of CategoryManager.php:
if(!$rootObjectItem->canView()) continue;
That works for me. Should it be added to code?
But now it shows the ID of my Category instead of the name like your example.
But I cannot do (the Category.Naam part):
$this->addPanel('MenuPanel4', new CategoryMenuPanel('Products', 'open', array(
'Category.Naam' => array('Product','OrderItem') // RootItems => ChildItems
)
), 'MenuPanel');
I cannot find a solution for this. Any idea?
UPDATE: found it: had no Title field in the DataObject,
Cheers,
Oscar