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, ...Navigation Hierachy between child portals - breadcrumbNavigation Hierachy between child portals - breadcrumb
Previous
 
Next
New Post
2/2/2010 6:59 PM
 

I am new to DotNetNuke and have been tasked with setting up a government site with one main parent landing page where the user can navigate between many child portals.
Each child portal goes to a different division. They will be managed separately by each division, but will share the same skin. Divisions are grouped together into logical areas, like "Courts" and "Licensing". Right now I am just manually making links in the skin header using the portal id:
  <a href="http://<%=PortalAliasController.GetPortalAliasByPortal(2,"")%>">Education Services</a> 

But, I have run into trouble trying to create the breadcrumb area.
Is there a way to set up a sitemap-like file to indicate the hierachacal path of child portals?
Or, barring that, is there a property I can set on the child portal that I can access at run time to construct the category name? I need the breadcrumb to look like this (with Education Services being a child portal)
       Home / Court Admin/AOC / Education Services

Any ideas?

 
New Post
2/3/2010 4:09 AM
 

If I understand you correctly, you can take a shortcut and set up pages within your root portal that link to subportals pages (there is an option in page settings to redirect pages to a certain location). Not sure how this will work with breadcrbs though.


Looking for dotnetnuke module development or dotnetnuke skinning services provider? Check our dnn modules and dotnetnuke skins to see where you can start.
 
New Post
2/3/2010 11:09 AM
 

Breadcrumbs don't work across portals because portals are separate sites.  In your case, you don't want portals for each division or agency, keep them all in the same DNN site/portal.

Jeff

 
New Post
2/3/2010 3:35 PM
 

 

I really do need to have each division have its own separate child portal several reasons.
I have ended up dynamically creating the breadcrumb. I have used the description property of the child portal to enter the category name. Is the description property used for anything important? Do search engines see it?
This is the main idea:
 
Dim iPortalID As Integer = PortalSettings.PortalId
Dim sPortalName As String = PortalSettings.PortalName
Dim sHomePortalUrl As String =
"http://" + PortalAliasController.GetPortalAliasByPortal(0, "")
BreadCrumbNavigation()

Sub BreadCrumbNavigation()
   ''the description property of ech child portal is used to indicate the menu category for the portal
  
sPortalLink = "http://" + PortalAliasController.GetPortalAliasByPortal(iPortalID, "")
   sCatName = PortalSettings.Description.ToUpper
   Select Case sCatName
      Case
"PUBLIC SERVICES"
         
sCatName = "Public Services"
         
sCatLink = sHomePortalUrl + "/PublicServices.aspx"
     
Case "LICENSING & REGULATION"
         
sCatName = "Licensing & Regulation"
         
sCatLink = sHomePortalUrl + "/LicensingRegulation.aspx"
     
End Select
 End Sub
</script>

<a
href="<%= sHomePortalUrl%>">Home</a>
<
span class="separator">/</span>
<a href="<%= sCatLink%>"><%= sCatName%></a> <span class="separator">/</span>
<a href="<%= sPortalLink%>"><%= sPortalName %></a>
<span class="separator">/</span>
<
dnn:BREADCRUMB runat="server" id="dnnBREADCRUMB" Separator="&nbsp;/&nbsp;" RootLevel="0" />

 
I have some if statements in there to deal with navigation on theparent portal, but this is the basic code. It results in navigation like this:
HomePublic Services / Education Services
The main downside I see is that I am hardcoding the category names. Any other pitfalls?

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Navigation Hierachy between child portals - breadcrumbNavigation Hierachy between child portals - breadcrumb


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