Breadcrumb, display 1 level only
Last Post 09/21/2015 1:37 PM by Gifford Watkins. 19 Replies.
Author Messages
CBOSS INC
Nuke Pro
Nuke Pro
Posts:61


--
08/20/2009 8:30 AM  
Basically I have a horizontal navigation and when you select one of those items the subpages of that are displayed in a second vertical navigation menu. On the top of that navigation I'm trying to have the main category displayed. For example if I select About Us on the horizontal navigation links such as Overview, History etc. display in the vertical nav menu. But above that I was trying to use the breadcrumb to display "About Us". I tried rootlevel="1" rootonly="true" but if I click Overview it displays both About Us > Overview. I just want it to display About Us only. Any ideas? or Any other ways to achieve this if I don't use bread crumbs?
Joseph Craig
DNN MVP
Posts:11667


--
08/20/2009 10:42 PM  
You can use a Text/HTML module with a replaceable token that has the page name.

Construct your page skin so that you can place a module where you want to breadcrumb to appear. Then, put a Text/HTML module there with the token [Tab:TabName].

If you are using DotNetNuke 5.x, there is a new Text skin object that allows you to put text into the skin. It also does token replacement as in the Text/HTML module. You can read more about it at: http://www.dotnetnuke.com/Community...ments.aspx

Joe Craig, Patapsco Research Group
Complete DNN Support
Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
08/21/2009 3:02 AM  
Hello,

I can't find a way to do it with breadcrumbs to just display root, the options are to display all other items except the root, so Joes solution will probably be best, here are the options for breadcrumbs:


rootlevel=" "

The root level of the breadcrumb
links. Valid values include:

-1 - show word “Root” and then all
breadcrumb tabs
0 - show all breadcrumb tabs
n (where n is an integer greater than
0) - skip n breadcrumb tabs before
displaying

1 - ie. shows 'Overview' from menu of 'About Us > Overview'
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
CBOSS INC
Nuke Pro
Nuke Pro
Posts:61


--
08/24/2009 5:25 PM  
I'm kinda stumped on the token replacement. I added this to my xml file [tab:tabname] ID BreadCrumbPane But when I put a html module there, it simply displays [tab:tabname]. Please help.
Joseph Craig
DNN MVP
Posts:11667


--
08/25/2009 8:11 AM  
Did you go to the module settings and enable tab replacement?

Joe Craig, Patapsco Research Group
Complete DNN Support
bjmell
Nuke Active Member
Nuke Active Member
Posts:23


--
09/24/2009 8:22 AM  
How do you change the word "Root" to "Home" when applying Breadcrumb?
Joseph Craig
DNN MVP
Posts:11667


--
09/24/2009 9:17 AM  
I should also have said that "Root" is a localized bit of text, and that you can change it in the language editor.

Joe Craig, Patapsco Research Group
Complete DNN Support
bjmell
Nuke Active Member
Nuke Active Member
Posts:23


--
09/24/2009 9:50 AM  
I believe this to be the problem.  Where in the Language Editor can I make this change?
bjmell
Nuke Active Member
Nuke Active Member
Posts:23


--
09/24/2009 9:57 AM  
Forget it.  I found it.

Thanks!  That was it.
bjmell
Nuke Active Member
Nuke Active Member
Posts:23


--
09/24/2009 10:54 AM  
How about changing the font size of the Breadcrumbs?
Joseph Craig
DNN MVP
Posts:11667


--
09/24/2009 10:59 AM  
You can change the font size of the breadcrumbs by changing the CSS style that is applied.  Use the Web Developers Toolbar (see Troubleshooting DotNetNuke Skins) to determine the class applied to the breadcrumbs.  You can also look in the skin file to see.  There is also an attribute that can be applied to the BREADCRUMB object to specify the class, should you want to do it that way.

Joe Craig, Patapsco Research Group
Complete DNN Support
bjmell
Nuke Active Member
Nuke Active Member
Posts:23


--
09/24/2009 12:19 PM  
Two more questions.
How do I make the arrows in between the breadcrumbs smaller and how do I remove the link of the current page that it is on?
Joseph Craig
DNN MVP
Posts:11667


--
09/24/2009 5:26 PM  
You will find all of the attributes of the BREADCRUMB object in the DotNetNuke Skinning Guide that you can download here.  You want to change the Separator attribute.

For the second question, you can look here

Joe Craig, Patapsco Research Group
Complete DNN Support
bjmell
Nuke Active Member
Nuke Active Member
Posts:23


--
09/25/2009 7:29 AM  
I am working in html.  Either way (html or xml) it doesn't look like there is a way to make the ">" arrow smaller. 

The answer to the second question makes sense.
Joseph Craig
DNN MVP
Posts:11667


--
09/25/2009 9:17 AM  
In the HTML for the separator, you can specify a class.  You can then specify the size for the class.

Joe Craig, Patapsco Research Group
Complete DNN Support
bjmell
Nuke Active Member
Nuke Active Member
Posts:23


--
09/29/2009 3:03 PM  
New issue.
When working with http://seablick.com/blog/92/fixing-...ject.aspx, using the "Write a Custom Skin Object" solution (used when wanting the last attribute in the breadcrumb to be unlinked), everything works fine except you can't set the Root Level to "-1" (which is what I want).  DNN gives me an error.  Works fine when you set the level to "0".

Any ideas?
sped
Nuke Active Member
Nuke Active Member
Posts:29


--
11/10/2009 7:56 PM  
To change the word "Root" to "Home" in the Language editor:

1. Go to Admin\ Languages

2. browse Resources -
\admin\Skins\App_LocalResources\BreadCrumb.ascx.en.Host.resx

3. change 
< a href='{0}' class='{1}' >Root< /a >
to
< a href='{0}' class='{1}' >Home< /a >
*remove spaces in the 'a' anchor tags.

I'm sure this will help others like myself that are new to DNN.

Forget it. I found it.
Thanks! That was it.

It helps if you work out a solution, to also post it for others to view.
Gifford Watkins
Nuke Newbie
Nuke Newbie
Posts:6


--
09/10/2015 1:42 PM  
Ugh, thank you for this last post; nothing like someone saving someone else hours of digging through the Language Editor... ack!
Gifford Watkins, BSc, MA
Founder and CEO, Webfitters
Joseph Craig
DNN MVP
Posts:11667


--
09/11/2015 7:29 AM  
Wow! A six year old post, and a reference down in there to seablick. Brings back some memories!

(and, howdy Gif!)

Joe Craig, Patapsco Research Group
Complete DNN Support
Gifford Watkins
Nuke Newbie
Nuke Newbie
Posts:6


--
09/21/2015 1:37 PM  
Hi Joe!! Yeah man, no kidding right!? I was blown away to find that this quick Language Editor tip for changing the Breadcrumb name was still relevant after six years! yay!!
Gifford Watkins, BSc, MA
Founder and CEO, Webfitters


---