<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: My Breadcrumbs have &#8220;&gt; Pages &gt; default.aspx&#8221; in them</title>
	<atom:link href="http://www.novolocus.com/2008/05/07/my-breadcrumbs-have-pages-default-aspx-in-them/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.novolocus.com/2008/05/07/my-breadcrumbs-have-pages-default-aspx-in-them/</link>
	<description>Whatever Andy Burns is working on...</description>
	<pubDate>Tue,  7 Oct 2008 16:51:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: novolocus.com &#187; Breadcrumb Path Separator and Path Direction</title>
		<link>http://www.novolocus.com/2008/05/07/my-breadcrumbs-have-pages-default-aspx-in-them/#comment-1646</link>
		<dc:creator>novolocus.com &#187; Breadcrumb Path Separator and Path Direction</dc:creator>
		<pubDate>Fri, 16 May 2008 07:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=533#comment-1646</guid>
		<description>[...] of these are really ASP.NET settings rather than most specific. Previously I&#8217;ve mentioned using different SiteMapProviders and rendering the current location as a link. Let&#8217;s have a look at another couple of [...]</description>
		<content:encoded><![CDATA[<p>[...] of these are really ASP.NET settings rather than most specific. Previously I&#8217;ve mentioned using different SiteMapProviders and rendering the current location as a link. Let&#8217;s have a look at another couple of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.novolocus.com/2008/05/07/my-breadcrumbs-have-pages-default-aspx-in-them/#comment-1577</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Thu, 08 May 2008 09:27:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=533#comment-1577</guid>
		<description>Hi Sumit,

No problem, it's nice to help out.

Well, there are a couple of options for your top level site breadcrumbs, but first - do you _really_ want to do that?

I'll assume your top level site has the publishing features enabled (if not, the "Pages &gt; default.aspx" thing wouldn't have been a problem!)  That site has a Pages Library called 'Pages', and a Page in it with the file name default.aspx then.

As you've noticed, if you go to your top level site, you get shown the pages/default.aspx page, and this has a single link back to your top level site on it, which you don't really want. If you click on that link, it takes you 'back' to the page that you're already at.

However, the Pages Library of your top level site could have other Pages in it, and it does make sense for these to have a breadcrumb link to the pages/default.aspx page. Yes, you could get there through the top navigation bar, but this isn't as intuitive.

If you're happy with the information that you're at the Home page, but you don't want the 'Home' title rendered as a link, you might want to consider your settings on the breadcrumb control for the RenderCurrentLink option. See: http://www.novolocus.com/2008/05/08/breadcrumbs-rendering-the-current-link/

If you really don't want that text 'Home' at all, and it really bugs you, though, there are some options.

The 'proper' way of dealing with this would be to write a new SiteMapProvider, install it, add it to your web.config and then use it in your pages. You would have to start from scratch, I suspect - there doesn't seem to be a CurrentNavSiteMapProviderNoEncode class to subclass (it seems to be part of the PortalSiteMapProvider Class )

(At least, that should be possible - I've never tried, but it looks right)

There is an interesting article from Rich Finn which might be useful:
http://blog.richfinn.net/2007/08/14/CustomCMOSSNavigationUsingPortalSiteMapProvider.aspx

Also Shantha Kumar has a list of the Nav providers used in SharePoint, which is pretty interesting.
http://ktskumar.wordpress.com/2008/04/14/sharepoint-navigation-providers-part-1/

Alternatively, the hack approach would be to use some Javascript to get the onetidPageTitleAreaTable, then find the breadcrumb within, then examine how many links there are, and decide whether to set the visibility of the breadcrumb to hidden. But that really does sound like a hack.</description>
		<content:encoded><![CDATA[<p>Hi Sumit,</p>
<p>No problem, it&#8217;s nice to help out.</p>
<p>Well, there are a couple of options for your top level site breadcrumbs, but first - do you _really_ want to do that?</p>
<p>I&#8217;ll assume your top level site has the publishing features enabled (if not, the &#8220;Pages > default.aspx&#8221; thing wouldn&#8217;t have been a problem!)  That site has a Pages Library called &#8216;Pages&#8217;, and a Page in it with the file name default.aspx then.</p>
<p>As you&#8217;ve noticed, if you go to your top level site, you get shown the pages/default.aspx page, and this has a single link back to your top level site on it, which you don&#8217;t really want. If you click on that link, it takes you &#8216;back&#8217; to the page that you&#8217;re already at.</p>
<p>However, the Pages Library of your top level site could have other Pages in it, and it does make sense for these to have a breadcrumb link to the pages/default.aspx page. Yes, you could get there through the top navigation bar, but this isn&#8217;t as intuitive.</p>
<p>If you&#8217;re happy with the information that you&#8217;re at the Home page, but you don&#8217;t want the &#8216;Home&#8217; title rendered as a link, you might want to consider your settings on the breadcrumb control for the RenderCurrentLink option. See: <a href="http://www.novolocus.com/2008/05/08/breadcrumbs-rendering-the-current-link/" rel="nofollow">http://www.novolocus.com/2008/05/08/breadcrumbs-rendering-the-current-link/</a></p>
<p>If you really don&#8217;t want that text &#8216;Home&#8217; at all, and it really bugs you, though, there are some options.</p>
<p>The &#8216;proper&#8217; way of dealing with this would be to write a new SiteMapProvider, install it, add it to your web.config and then use it in your pages. You would have to start from scratch, I suspect - there doesn&#8217;t seem to be a CurrentNavSiteMapProviderNoEncode class to subclass (it seems to be part of the PortalSiteMapProvider Class )</p>
<p>(At least, that should be possible - I&#8217;ve never tried, but it looks right)</p>
<p>There is an interesting article from Rich Finn which might be useful:<br />
<a href="http://blog.richfinn.net/2007/08/14/CustomCMOSSNavigationUsingPortalSiteMapProvider.aspx" rel="nofollow">http://blog.richfinn.net/2007/08/14/CustomCMOSSNavigationUsingPortalSiteMapProvider.aspx</a></p>
<p>Also Shantha Kumar has a list of the Nav providers used in SharePoint, which is pretty interesting.<br />
<a href="http://ktskumar.wordpress.com/2008/04/14/sharepoint-navigation-providers-part-1/" rel="nofollow">http://ktskumar.wordpress.com/2008/04/14/sharepoint-navigation-providers-part-1/</a></p>
<p>Alternatively, the hack approach would be to use some Javascript to get the onetidPageTitleAreaTable, then find the breadcrumb within, then examine how many links there are, and decide whether to set the visibility of the breadcrumb to hidden. But that really does sound like a hack.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: novolocus.com &#187; Breadcrumbs - Rendering the current link</title>
		<link>http://www.novolocus.com/2008/05/07/my-breadcrumbs-have-pages-default-aspx-in-them/#comment-1576</link>
		<dc:creator>novolocus.com &#187; Breadcrumbs - Rendering the current link</dc:creator>
		<pubDate>Thu, 08 May 2008 09:00:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=533#comment-1576</guid>
		<description>[...] So one of yesterdays posts brought up a question about rendering the link to the current site. This sort of set me investigating. [...]</description>
		<content:encoded><![CDATA[<p>[...] So one of yesterdays posts brought up a question about rendering the link to the current site. This sort of set me investigating. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumit</title>
		<link>http://www.novolocus.com/2008/05/07/my-breadcrumbs-have-pages-default-aspx-in-them/#comment-1574</link>
		<dc:creator>Sumit</dc:creator>
		<pubDate>Thu, 08 May 2008 02:07:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=533#comment-1574</guid>
		<description>Hi Andy,

Thanks for the article. It almost solved my problem and saved lot of time.  Thanks for the efforts you have put in.

I'm facing another problem with this now. At site collection level it just displays "Home" at all the times on all the publishing pages. It works fine for subsite. e.g for Products site it displays it like this "Home &#62; Products &#62; Intro" which is absolutely right. But the problem is first level site (i.e. site collection level) where it just displays "Home" for all the pages.

I'll appreciate any help on this.

Thanks,
Sumit</description>
		<content:encoded><![CDATA[<p>Hi Andy,</p>
<p>Thanks for the article. It almost solved my problem and saved lot of time.  Thanks for the efforts you have put in.</p>
<p>I&#8217;m facing another problem with this now. At site collection level it just displays &#8220;Home&#8221; at all the times on all the publishing pages. It works fine for subsite. e.g for Products site it displays it like this &#8220;Home &gt; Products &gt; Intro&#8221; which is absolutely right. But the problem is first level site (i.e. site collection level) where it just displays &#8220;Home&#8221; for all the pages.</p>
<p>I&#8217;ll appreciate any help on this.</p>
<p>Thanks,<br />
Sumit</p>
]]></content:encoded>
	</item>
</channel>
</rss>
