Hello everybody,
I've reached a bit of a stumbling block with custom module development and hope somebody may be able to shed a little light on the subject for me.
I've done a fair bit of research, but just can't seem to get it right...
The module is a simple item list control, which pushes to a item detail view control.
The problem is actually two fold...
I managed to get my module working with multiple controls using NavigateUrl to do the heavy lifting for generating an appropriate page call. This works, but causes a shift from the site skin to the admin skin. I tried switching the detail control from an Edit type to a View type, but with no luck. I understand this is the expected behaviour (after a bit of research).
Since, I couldn't find a good example of how to force the skin to remain a non-admin skin, I followed the other common approach of building a top level dispatch module.
The problem I'm having is that although the dispatching module correctly shows the list when I enter the page, when I get pushed to the detail view (a URL with the correct parameters is generated) I find that not only is the detail module not shown -- but the dispatching module doesn't show.
Unfortunately, even though the URL is correct (I can see all the parameters), direct access (via rewritten or standard URL format) doesn't work either.
My reference for the dispatching module is at http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/110/threadid/46342/scope/posts/threadpage/2/Default.aspx
I've tried handing off via the list module via straight link (ie. constructed using String.format, NavigateUrl and a parameter array), via a dynamically created LinkButton, and also tried to tie to a server side event on the dynamically generated link (in the item list... which is a gridview), but nothing works... other than the skin remains the same.
I'm using the method described where the Page.Init injects the dynamically created view (list or detail) into a placeholder control... and my code doesn't differ significantly from that found in the referenced thread.
Has anybody got advice, or a minimal but complete working sample?
Any help is greatly appreciated!