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  |  

Vote for DotNetNuke as your choice for winner of this year's PackT Open Source CMS Award
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
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
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Get Parent Tab ID
Previous Previous
 
Next Next
New Post 6/11/2008 6:12 AM
User is offline rjdejong
67 posts
10th Ranked


Get Parent Tab ID 

Not sure if this in the correct Forum. If not please move it :)

I'm using the house of nuke menu wich can takes the TabID variable to determine what part of the menu should be displayed.

So for my menu i would like to get the parent ID of the current page. I was wondering what the code for this is and if i can use this code in my ASCX Skin files.

Appreciate any help you can give me, Thanks in advance.

Greetz R-J


www.rjdejong.net
 
New Post 6/11/2008 7:18 AM
User is offline Brandon Haynes
550 posts
everysport.net
8th Ranked


Re: Get Parent Tab ID 

Hi RJ,

There are a variety of ways to get this information, but here is what I would use:

DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings().ActiveTab.ParentId

Hope this helps!

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post 6/11/2008 7:59 AM
User is offline rjdejong
67 posts
10th Ranked


Re: Get Parent Tab ID 

Hey Brandon,

Thanks for your reply, works perfectly :).

 


www.rjdejong.net
 
New Post 6/11/2008 8:19 AM
User is offline rjdejong
67 posts
10th Ranked


Re: Get Parent Tab ID 

Sorry to use this thread again but i had another small question.

Is there a way to check if a page has Child pages.

Thanks again :)


www.rjdejong.net
 
New Post 6/11/2008 8:25 AM
User is offline Brandon Haynes
550 posts
everysport.net
8th Ranked


Re: Get Parent Tab ID 

Believe the following is what you're looking for:

DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings().ActiveTab.HasChildren

There are a variety of useful properties and methods in the PortalSettings and TabInfo class.  You can use Visual Studio's Object Browser to view them -- just search for TabInfo.

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Get Parent Tab ID
 


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.

 


Jetkey Smart Map
Smart Map is an AJAX powered Google Map module that displays driving directions, proximity search results and data from your own databases. Smart Map reads GPX (GPS data) files, GeoRSS feeds, and KML data. You can pass any querystring parameter to Smart Map and into your own custom queries to control what data displays on the map.
smartmap.jetkey.com
DNNSpired.com
Inspired to extend DotNetNuke®, everyday.
www.DNNSpired.com
TMA Resources
TMA Resources is a software company providing eBusiness solutions for the Association market.
www.tmaresources.com

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