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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Programatically create child portalProgramatically create child portal
Previous
 
Next
New Post
2/22/2012 6:21 AM
 

I have Main Parent portal and I want members to subscribe. (Figured this out, no problem here) I also figured out the cahild portals. But what I need is the following:

(1) Subscriber signs up at main portal

(2) It asks him/her  for a 'child' portal name and creates a child portal where the subscribed member has full permissions to modify/update. It creates the portal with a default skin.

 

I want this in a sequence back-2-back.

 

Any ideas how to do thsi or is there a ready to use module?

 

TIA

 

 

 
New Post
2/22/2012 7:29 AM
 
It's a bit dated but may still apply:

http://kemmis.info/blog/archive/2007/11/07/programmatically-creating-dotnetnuke-pages.aspx

Mark
 
New Post
4/8/2013 7:34 AM
 
Hello everybody,
I'am working with dnn 7.00.04.My project is generate a child portal every time a client signup.So i'am trying to create a child portal programmatically.
I figure out that i need to call this function
   CreatePortal(portalname as String,
                firstname  as String,
                lastname   as String,
                username    as String,
                password    as String,
                email     as String,
                description  as String,
                kerywordd   as String,
                template path      as String,       
                TemplateBuilder file   as String,  
                home directory  as String,
                portalalias  as String,
                server path  as String,
                child path as String,
                is child  as Boolean
                )
Everything works fine except that i don't find the template in my child portal file and that the portal alias is not created

Any thoughts ????
 
New Post
8/1/2014 4:14 PM
 

Skinner,

I have the same requirements. Have you gotten any more information on how to do this?

Robert

 
New Post
8/1/2014 4:21 PM
 
Hello,

I don't think there's an easy/direct way to do this... That's a guess based on a cursory glance at the code... Here's the code for what I think is the page DNN uses to create protals - it would have everything you need - but it looks like a lot of the logic is built into that page.

https://dotnetnuke.codeplex.com/Sourc...

Hope this helps,

Mike
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Programatically create child portalProgramatically create child portal


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