Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Listing tabs and modules
Previous Previous
 
Next Next
New Post 8/14/2007 2:58 PM
User is offline Martin Petersen
25 posts
www.martinmoesby.com
10th Ranked




Listing tabs and modules 
Modified By Martin Petersen  on 8/14/2007 5:04:12 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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Listing tabs and modules
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DM Analytics, LLC
DM Analytics, LLC provides software solutions that facilitate rapid development of independent or dependent datamarts and their associated web-based reporting.
www.dmanalytics.com
Integral Hosting | DNN only $14.95/month
Experienced .NET hosting on Windows 2003, ASP.NET 1.1 & 2.0, MSSQL with real technical support.
www.integralhosting.com
Aricie
Aricie is one of the French pioneers and experts in DotNetNuke technology.
www.aricie.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP