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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Automate Page Creation - how?Automate Page Creation - how?
Previous
 
Next
New Post
2/12/2007 12:14 PM
 

This is really a two part question...

I have a custom script that allow users to request that pages be added to my portal. The script just adds a row to a 'Pending' table with the ParentTabID, so the new Tab will use it as its Parent.

1) What SQL do I need to write so that TabOrder and Level are automatically adjusted for a new Tab, which is generated by looking at the 'Pending' table and processing 1 request. I see that the AddTab Procedure doesn't take TabOrder or Level as params.

2) I know there is the Default template in Portals/_default/Templates. When I have finalised what will constitute my Template I will build another Template XML file that I can use it in the above process. How can I reference the new Template in SQL when I run the above process? Would I need to insert all the default module settings for each new module?

many thanks,

Steve


Steve White
 
New Post
2/12/2007 12:42 PM
 

Steve,

you should not access core tables directly but using the business objects in the core, to add objects like pages. They will also care for correct parentID and TabOrder.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/12/2007 12:50 PM
 

Thanks, but I'm not writing any new business logic for this process. I want to handle all the logic at the SQL end. I can already process one 'Pending' row, the other things not working are TabOrder and Level. Level would be pretty easy since it would be the Level of the ParentTabID + 1. TabOrder is a different story though. It's almost as if I'd need to create a temp sql table and then reorder the whole tab collection after the new one has been inserted.

There has to be a way to do all of this in SQL. My process script just processes on item in a ListX list. Then it's all handed over to SQL.

Are you saying that the only way this can be done is to use runtime code?

 


Steve White
 
New Post
2/12/2007 2:29 PM
 

Actually Sebastian, you're probably right. I should just


Steve White
 
New Post
2/12/2007 2:32 PM
 

I'll try that again...

Actually Sebastian, you're probably right. I should just


Steve White
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Automate Page Creation - how?Automate Page Creation - how?


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