The Edit control of my custom module(s) always shows up as the only control of the page... I have a custom treeview module in the left pane and a text module in the right pane with the module-in-question in the content pane. When the user selects Edit from
the module-menu, all modules on the page are hidden with only the Edit control for that module made visible - the norm in DNN it seems. How can the Edit control be shown KEEPING the other modules on the page? ie: just swap it out with the View control and
leave all else as-is... Thanks
The only way to do this would be to link to an existing page to edit your module. This would be kind of quirky because it's not how DNN was built. I'd suggest you look into including everything you need in the edit control instead. If you can't, it can be done,
however - it just won't be pretty.
Thanks Mike, it's sort of what I've found out but like to be sure I'm seeing this correctly. what I've done now is to create ONE control containing the View and Edit control and not using the DNN IActionable interface. I have Add/Edit btns on the parent control
and make the child control visible as needed. I've hit a snag in trying to get the controls to refresh/reload properly though... Thanks for the help though. Lindsay
Not to take away from Michael's post, but I think you could do a "LoadControl()" and load any of your other user controls inside your edit control. I haven't done this in DNN, but I can't imagine it wouldn't work.
Hi Darren, good idea BUT I have different modules in different panes using IMC. I want to keep all modules visible in the left and right pane (as they are view-only) and just display the Edit control on the content pane. The look/feel for the user going from
View to Edit should be consistant/similar in both. Now hitting a snag populating and repopulating the chld controls in the one parent control now so my have to resort to 3 child controls, LOL, namely View, Edit and New... changing their visibility as required.
I'm not worried either way as long as it behaves!!
Hmm... That could work. In fact, if you grab the skin and look for a pane, you could actually load a module in it... I think. It might be kinda tricky and you would have to know the name of the pane, but it'd be possible. The downside to this is that it wouldn't
be very portable since pane names are controlled by the skin.
You might want to take a look at the thread I started called "Edit module inline".
One of the replies suggests an article using dynamic user control loading.
This looking interesting (and my second choice), but I'm personally interested in what the UseActionEvent ModuleAction property could do for us as I want to achieve the same as yourself. I personally think that its odd the way DNN works where it edits the
module on its own?
I'd be interested in hearing which solution you pick.
Thanks,
Joe.
MIS Manager (and wannabe Software Architect)
Onyx Internet
Yeah, I caught that. Your post just triggered a thought [:D] Besides that, Lindsay was looking for something that would mimic the view page, which would use other panes.
I see... I didn't reallize you weren't using IActionable. It sounds like you've got a good solution here. You could simply use regular user controls and include the view and edit controls
as you would in any .NET app. Then, cast the parent as a PortalModuleBase class to access its DNN properties.
blmiles
Member
302 Points
92 Posts
Alternate display of Edit control for custom module...
Feb 22, 2006 02:30 PM|LINK
flanakin
Participant
1911 Points
384 Posts
Re: Alternate display of Edit control for custom module...
Feb 22, 2006 03:36 PM|LINK
www.michaelflanakin.com
blmiles
Member
302 Points
92 Posts
Re: Alternate display of Edit control for custom module...
Feb 22, 2006 03:48 PM|LINK
DeveloperMCD...
Contributor
5570 Points
1114 Posts
Re: Alternate display of Edit control for custom module...
Feb 22, 2006 04:00 PM|LINK
blmiles
Member
302 Points
92 Posts
Re: Alternate display of Edit control for custom module...
Feb 22, 2006 04:08 PM|LINK
flanakin
Participant
1911 Points
384 Posts
Re: Alternate display of Edit control for custom module...
Feb 22, 2006 04:44 PM|LINK
www.michaelflanakin.com
joerowe
Member
362 Points
74 Posts
Re: Alternate display of Edit control for custom module...
Feb 22, 2006 04:46 PM|LINK
Hi,
You might want to take a look at the thread I started called "Edit module inline".
One of the replies suggests an article using dynamic user control loading.
This looking interesting (and my second choice), but I'm personally interested in what the UseActionEvent ModuleAction property could do for us as I want to achieve the same as yourself. I personally think that its odd the way DNN works where it edits the module on its own?
I'd be interested in hearing which solution you pick.
Thanks,
Joe.
Onyx Internet
DeveloperMCD...
Contributor
5570 Points
1114 Posts
Re: Alternate display of Edit control for custom module...
Feb 22, 2006 04:51 PM|LINK
no pane needed. [;)]
flanakin
Participant
1911 Points
384 Posts
Re: Alternate display of Edit control for custom module...
Feb 22, 2006 05:08 PM|LINK
www.michaelflanakin.com
flanakin
Participant
1911 Points
384 Posts
Re: Alternate display of Edit control for custom module...
Feb 22, 2006 07:35 PM|LINK
www.michaelflanakin.com