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.0Listing tabs and modulesListing tabs and modules
Previous
 
Next
New Post
8/14/2007 4:58 PM
 

OK - Now I've done it.

I've stared myself blind at this little tiny problem and I'm pretty sure that the solutions is MUCH more simple than I'll ever imagine.

Here's the Purpose:

I've created a set of custom modules (lets call them "module 1, 2 and 3"). These modules have I placed on "Tab 1".

Then I created a new module (for ease we'll call it "Module 4".)

"Module 4" has been placed on "Tab 2"

Now here's the thing : In "Module 4", I need to set a custom setting which should be the moduleID of "Module 1", which is placed "Tab 1".

And here's the Problem:

Now, how do I get the tabs and modules in the active portal ? I can figure out how to get the modules on the active tab, but not on the other tabs?

Oh, and for ease sake, I'll post my code here (dont be alarmed, I'm only just getting to know the DNN framework :-) ) 

 

 

Dim myArray As ArrayList = GetPortalTabs(PortalId, False, False, False, False, False)
Dim myModInf As DotNetNuke.Entities.Modules.ModuleInfo
'Dim myTabCont As DotNetNuke.Entities.Tabs.TabController = New TabController
 
Dim iCount, iCount2 As Integer
 
For iCount = 1 To myArray.Count
Dim myTabInfo As DotNetNuke.Entities.Tabs.TabInfo = CType(myArray(iCount - 1), DotNetNuke.Entities.Tabs.TabInfo)
Dim myArray2 As System.Collections.ArrayList = myTabInfo.Modules '(iCount, PortalId, True).Modules
[^^^^^^^^^^^ This ArrayList is Empty, even though the tab has 3 modules ]
For iCount2 = 1 To myArray2.Count
myModInf = CType(myArray2(iCount2 - 1), DotNetNuke.Entities.Modules.ModuleInfo)
Dim myListItem As ListItem = New ListItem
myListItem.Value = myModInf.ModuleID
myListItem.Text = myTabInfo.TabName & "-" & myModInf.FriendlyName
drpPackagesModules.Items.Add(myListItem)
drpSystemsModules.Items.Add(myListItem)
Next
Next
 

 

 

And Like I said, the solutions is probably MUCH more simple than I can imagine. ANY help will be greatly appreciated

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Listing tabs and modulesListing tabs and modules


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