Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > How to stop breadcrumbs showing on the homepage View modes: 
User avatar
Member
Member
positivepurchasing - 1/30/2013 4:05:11 AM
   
How to stop breadcrumbs showing on the homepage
Hi,

How do I set up the breadcrumb control so that it shows on all pages except the homepage?

I have found this tiny bit of documentation - http://devnet.kentico.com/docs/5_5/controls/index.html?cmsbreadcrumbs.htm.

Cheers
Paul.

User avatar
Member
Member
davids-kentico - 1/30/2013 7:31:41 AM
   
RE:How to stop breadcrumbs showing on the homepage
Hey Paul,

In an ASPX page template, you just need to test CMSContext.CurrentDocument.NodeAliasPath or DocumentName for the alias path or name of your home page in the Page_Load method. If one of the properties matches your home page's properties, set the Visible property of the breadcrumbs control to false.

If you're using Portal engine, you can use a K# macro. Open up the properties of the Breadcrubs web part and click the small arrow next to the Visible property. Then enter the condition under which you want the web part to be visible.

Hope this helps.

Cheers
Dave

User avatar
Certified Developer 13
Certified Developer 13
josefd@kentico.com - 1/30/2013 8:39:41 AM
   
RE:How to stop breadcrumbs showing on the homepage
Hello,

here is an example of macro which, when placed into web part Properties -> Visibility -> Visible, will make the web part not show on all pages with name "Home".
{% CurrentDocument.DisplayName.ToString() != "Home" %}

Regards,
Josef Dvorak

User avatar
Member
Member
positivepurchasing - 2/5/2013 4:45:22 AM
   
RE:How to stop breadcrumbs showing on the homepage
Hi,

Thanks for your help guys.

I can't get the breadcrumb control to do anything useful. It will only show pages that are not in the root of the website.

For example these pages don't show http://www.example.com/Products.aspx, http://www.example.com/About.aspx and these pages show http://www.example.com/Products/Books.aspx, http://www.example.com/About/Team.aspx.

Does anyone know what is happening? or can I be directed to some documentation Please.

Cheers
Paul.

User avatar
Certified Developer 13
Certified Developer 13
josefd@kentico.com - 2/5/2013 6:12:52 AM
   
RE:How to stop breadcrumbs showing on the homepage
Hello,

I'll start with some links to documentation: Breadcrumbs Control, Breadcrumbs Web part Properties, other navigation controls.

The breadcrumbs should show you the entire path depending on your actual position on the site, for example like this, when you are on the 'Team' document:

About > Team

You mentioned the breadcrumbs do not show if you access the pages directly under the root. There might be an issue with web part settings. Could you check the following property is set like this:

Starting path: /

However this is only one of things which could be causing it. If it doesn't solve the issue, please paste an export of the web part settings in here, so that I can take a look and test them. The option to export the settings is at the very bottom of the web part properties.

Regards,
Josef Dvorak

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 2/5/2013 7:33:49 AM
   
RE:How to stop breadcrumbs showing on the homepage
Where is your control placed? It should be on your master or root page. Can you share the property values you set in it, this might help to resolve the problem.

User avatar
Certified Marketer 12
Certified Marketer 12
Ilesh Mistry (MMT Digital's K-Team) - 2/7/2013 8:14:22 AM
   
RE:How to stop breadcrumbs showing on the homepage
Another way could be that you can hide the page from the menu 'Show in navigation' to be false under the Properties --> Menu
If the homepage does not need to be shown in navigations elsewhere.

Ilesh Mistry from MMT Digital's K-Team
Kentico Certified Developer