dotnetnuke - How to display the native DNN popup in a custom controller action? -
i have created dnn module using mvc template in visual studio. template creates itemcontroller "delete", "edit" ad "index" actions. "edit" action, in particular, displays popup editing model's properties.
i managed create controller index , edit actions, , edit actions displays popup in itemcontroller.
then tried create action (let's "add"), , use popup display. i've tried add new module action in .dnn file element <supportspopups>true</supportspopups>, doesn't work.
how can it?
i found out in template example, link opening popup in .cshtml file:
<a href="@url.action("edit", "item", new {ctl = "edit", itemid = item.itemid})">@dnn.localizestring("edititem")</a> specifies route value ctl = "edit". parameter seems control popup display, though don't understand how works.
Comments
Post a Comment