Apr 21, 2011 at 3:31 PM
Edited Apr 21, 2011 at 4:03 PM
I am trying to extend orchard by writing module. I have 1:N relation of Menu and MenuItems. I pretty got everything other except creating shapes. I have PartRecords, Parts, Services, Handlers and Drivers.
Can someone tell me if there exist functionality to automaticaly create in Admin section collection of MenuItems when i select Menu Edit? <<< "I created link that points to Edit Method of MenuAdminController"
I have found this by searching discussions for 'Shape' :
var containerShape = _contentManager.BuildDisplay(container,
dynamic viewModel = Shape.ViewModel()
but i have still difficulties comperhending the whole rendering process (model -> view -> html) ...
Maybe it's little unclear, all i want is to know how (if can) to reuse Orchard functionality to create ie. New Menu Item (for current menu), Remove Menu Item, Edit Menu Item, Edit Menu...
Thanks in advance,