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...Administration ...Administration ...Create Multiple Pages From XML/OtherCreate Multiple Pages From XML/Other
Previous
 
Next
New Post
2/20/2009 12:22 PM
 

I seem to remember reading about the ability to create multiple pages at once from an XML or other source file...but can't find out how (or if my memory is even serving me correctly.)  Can anyone point me in the right direction here?  My goal is to generate a tree of pages without having to add each page manually.

Thanks!

 
New Post
2/27/2009 12:28 PM
 

Well, I found the original document that gave me this idea - DNN allows the creation of portal templates that can be used with the initial install.  One of the features of these templates is the ability to add pages, permissions, modules, etc into the template to automatically fill your portal with content when it is installed.

Here's my workaround for now:  edit the Tabs table in the database.  (I'm sure there is a module or a query somewhere out there that can do this already.)  Typing a list is simply faster and more convenient than having to manually click and wait for each page to be created in the web interface.

Here is a list of the fields I have used with my approach:

Field Name:
Explanation:
TabID Auto-incrementing.  This cannot be manually changed.
TabOrder The order that the pages appear within your portal's menu structure.  I just incremented this value.
TabName Page name
IsVisible 0 = No, 1 = Yes
ParentID Enter the TabID of the parent page; NULL (blank) to create a top-level page.
Level 0 = Top-level; 1 = 2nd level (under a parent page); 2 = 3rd level...
Title Page title (top of browser window)
Description Page description
IsDeleted 0 = No; 1 = Yes
TabPath I don't know if there is an "official" scheme for this field, but I copied the concept from other already existing pages, much like a regular URL path, but with double forward slashes.
IsSecure 0 = No; 1 = Yes

 

After making changes in the database, refresh the cache by click "Restart Application" in Host :: Host Settings or "Re-Index Content" in Host :: Search Admin.

You can then edit the properties for top level page that you just created:  apply the permissions that you want to use, and then if desired, use the Copy Permissions to Decendants" option to automatically set permissions on all of the child pages you created.  (Assuming you created a hierarchy of pages.)

I hope that helps some of you.  Please feel free to add your own suggestions or let me know if this is NOT a good idea.

Regards,
Sam

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Create Multiple Pages From XML/OtherCreate Multiple Pages From XML/Other


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