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.0CopyTab, AddTab, and UpdateTabCopyTab, AddTab, and UpdateTab
Previous
 
Next
New Post
8/31/2007 2:08 PM
 
Hello. I have a few questions about these methods. What I'm trying to do is create a simple DNN module that will have a subset of Page Settings to simplify content management for basic users. We have many layers of web content managers, some of whom have few computer skills. My DNN module will have about 6-10 Page Settings, a Save Settings button, and a Copy Page button (to allow basic users an easy way to copy a page template). I'm having limited success with these methods.

1) Is there API documentation that has short descriptions of all objects, properties, and methods? I can't find any.

2) When I call the UpdateTab() method, the page doesn't update. Is this correct?

Dim tabInfo As New DotNetNuke.Entities.Tabs.TabInfo
Dim tabCtrl As New DotNetNuke.Entities.Tabs.TabController

tabInfo = tabCtrl.GetTab(TabId, 0, True)
'Update page settings
tabInfo.TabName = Me.txtPageName.Text
tabInfo.Title = Me.txtPageTitle.Text
'etc.....
'Update page
tabCtrl.UpdateTab(tabInfo)

3) When I call the CopyPage() method, I get the new page. But, when I tried to delete the page in the DNN interface, I got an error and the deleted page is still in the Tabs table. Its an orphan record, because the deleted page is not visible in DNN.

Dim tabInfo As New DotNetNuke.Entities.Tabs.TabInfo
Dim tabCtrl As New DotNetNuke.Entities.Tabs.TabController
Dim intNewTabID As Integer

tabInfo = tabCtrl.GetTab(TabId, 0, True)
intNewTabID = tabCtrl.AddTab(tabInfo)
tabCtrl.CopyTab(0, TabId, intNewTabID, False)

4) I saw a post in the forum about using UrlController and ClearModuleCache when adding a new page, but I don't understand the details. Are these necessary for what I'm trying to do? If so, would you please give a brief description of what they do and what the parameters are for?

Thanks!! DNN is a great platform, but I'm a newbie and I just need to understand how its working.
 
New Post
8/31/2007 4:16 PM
 
Sorry, I forgot to add my environment:

Windows XP Pro (Windows Server 2003 for production site)
VS.NET 2005
DNN 4.5.5
 
New Post
9/5/2007 3:30 PM
 
Here's an update:

1) Still can't find an API document for core objects/properties/methods. Anyone have one?

2) My problem. I put some code in the Page_Load event that was causing problems. The UpdateTab method appears to work well.

3) May be my development environment. I noticed that deleting a page isn't working right anyway on my dev computer.

4) I'd still like to know more about UrlController.UpdateUrl(PortalId, ctlURL.Url, ctlURL.UrlType, 0, Null.NullDate, Null.NullDate, ctlURL.Log, ctlURL.Track, Null.NullInteger, ctlURL.NewWindow). Would someone explain what each parameter is for, and why its used when updating and creating Tabs?

Thanks!
 
New Post
10/10/2007 7:50 PM
 

Same question here.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0CopyTab, AddTab, and UpdateTabCopyTab, AddTab, and UpdateTab


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