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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...ParentTabId in skin?ParentTabId in skin?
Previous
 
Next
New Post
12/19/2006 1:11 PM
 
Is there a way to get the parent tabid in my skin? I want to modifie a skinobject in my .ascx file in order to generate the SEO menu in a certain way but I think I need to retrieve the parenttabid first in order to get it right. Should be something like this:

<dnn:SEOMENU runat="server" id="dnnSEOMENU2" Orientation="V" FriendlyURL="D" Range="<%=ParentId.OrSomeOtherVariable%>" CreateTabs="True" ShowParent="False" MenuType="id" ContType="id" ShowAdmin="False" ShowSubPages="False" />

I searched but could not find it anywhere...
Is there anybody out there with an idea??

Thanks,
Keston
 
New Post
12/21/2006 1:05 PM
 

  <%= PortalSettings.ActiveTab.ParentId %>

There's more on using PortalSettings in your skin here:

http://blogs.snapsis.com/CommentView,guid,105f8d79-ffbc-4859-836c-b747364fa59c.aspx

 


DotNetNuke Modules from Snapsis.com
 
New Post
1/8/2007 9:17 AM
 

Thanks John, do you know if it is also possible to retrieve the main parent id? I got quite a few levels of parents and I just want to retrieve the 'upper' parent (like Home).

Imagine you have

  • tab 1
    • tab 1.1
      • tab 1.1.1
      • tab 1.1.2
    • tab 1.2
  • tab 2
  • tab 3

In tab 1.1.1, I want to retrieve the id of tab1....Is that possible?

Keston

 
New Post
1/8/2007 11:33 AM
 
you could also ask the creator of the skinobject in question if he is willing to add an extra attribute to the skinobject.

Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
1/8/2007 12:21 PM
 

Hi Keston,

I'm not sure who the developer of the skinobject is, but you can do what you are asking like this:

<%=PortalSettings.ActiveTab.BreadCrumbs(0).TabId%>


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...ParentTabId in skin?ParentTabId in skin?


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