10387 Posts in 2198 Topics by 1712 members
| Go to End | ||
| Author | Topic: | 2335 Views |
-
Re: New Module : Create custom LeftAndMains with PanelModelAdmin

20 May 2011 at 3:33am Last edited: 20 May 2011 9:18pm
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 -
Re: New Module : Create custom LeftAndMains with PanelModelAdmin

5 August 2011 at 11:18am
Excellent work ! I was wondering how to start extending LeftAndMain class. Thanks !
| 2335 Views | ||
| Go to Top |

