TimGeyssens / UIOMatic

Auto generate an integrated crud UI in Umbraco for a db table based on a petapoco poco (and more)
https://timgeyssens.gitbook.io/ui-o-matic/
Other
67 stars 54 forks source link

189: Allow for custom menu items #190

Closed benjaminc closed 3 years ago

TimGeyssens commented 3 years ago

Mind also updating the docs?

benjaminc commented 3 years ago

I apologize, but could we undo these changes? It all compiled fine, and seemed to work, but when I went to put the attribute on a class it complained because apparently attributes can only have properties of a fixed set of types, and Func is not in that list.

After scrambling around yesterday trying to make it work, I then went back to trying to figure out how this is done in other parts of Umbraco so I could model it that way instead, and realized that the TreeControllerBase.MenuRendering event actually does fire for the custom back-office sections. So you can do what I wanted to do without any changes to your existing implementation! Very sorry.

TimGeyssens commented 3 years ago

haha no worries, yeah will undo! thanks for the update