Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module with multiple views. (An old topic, I know)Module with multiple views. (An old topic, I know)
Previous
 
Next
New Post
11/27/2007 3:13 PM
 

Hi all

There seems to be lots of questions and answers on this topic. I hope this doesn't come across too much like I'm complaining about a great free product but I just want to make sure I'm not missing anything and also make a suggestion.

I'm developing a reasonably complex module which requires multiple views at different times in the portal skin. I'm using dynamic loading, i.e., LoadControl etc from a base view which does nothing but load the real view I want to show. That's working well so I'm proceeding down that path but ... it seems complicated for something that should be simple.

Pasting from one of Michael Washington's pages, I know I can do this:

http://localhost/MyDNNWebsite/Home/tabid/36/ctl/mygallery/mid/362/Default.aspx

But that shows the module in the admin skin and other modules disappear which I don't want.

Multiple module definitions is another suggested solution but that doesn't really do it either because it shows all the views at once.

If my understanding is correct then the only view that can ever be shown in the portal skin is one with a blank key. Is that correct?

I surprises me that the core framework doesn't have a simple way of solving this. It seems like a useful and obvious enhancement would be to make it intepret a url similar to the one above to mean "do everything the same as if ctl and mid are not present except show the view with that key rather than the one with the blank key". I know its easy for me to say as an armchair observer but it seems like it would be a simple enhancement and would solve a problem that seems to have frustrated module developers for a long time.

Cheers
Ross

 
New Post
11/27/2007 3:31 PM
 

Personally in my module development where this is a factor I simple put a placeholder control on the page and load whatever controls I need to load, passing around various querystring parameters or modulesettings to figure out which control I need to load. Once you've done that a few times it's really easy to grasp and recreate whenver you need that functionality.

I agree, the ctl/blah approach within DNN can be rather limiting, but you definitely don't have to utilize those methods for all of your controls.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
11/28/2007 10:51 AM
 

As Chris mentioned you are really going down the right path to do this.  I personally for the most part deal with the limitation because when in a edit function I'm truly editing so it doesn't matter, but it just depends on your module.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module with multiple views. (An old topic, I know)Module with multiple views. (An old topic, I know)


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out