tag:blogger.com,1999:blog-1804865242850018128.post3571624313298191092..comments2023-09-27T14:29:55.934+07:00Comments on Sohel's Blog: SharePoint 2013: Breadcrumb for list/libraryAnonymoushttp://www.blogger.com/profile/15485221969375347012noreply@blogger.comBlogger78125tag:blogger.com,1999:blog-1804865242850018128.post-6165447724970824562017-05-02T11:57:07.257+07:002017-05-02T11:57:07.257+07:00hi. i like your custom JS. but i would like to che...hi. i like your custom JS. but i would like to check how do i edit the js such that when the user first enter the page with the web part, the bread crumb will show the root folder. currently now it is not showing anything. i need to click on a folder then click on the root folder link before it will be shown.<br /><br /><a href="http://imgur.com/IqKaTZu" rel="nofollow">web part initial view</a><br /><br /><a href="http://imgur.com/VVB8BAI" rel="nofollow">Click on folder</a><br /><br /><a href="http://imgur.com/S86uEzK" rel="nofollow">Navigate back</a><br />Unknownhttps://www.blogger.com/profile/03646752829859686645noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-50223840759589445522017-05-02T11:45:43.439+07:002017-05-02T11:45:43.439+07:00This comment has been removed by the author.Unknownhttps://www.blogger.com/profile/03646752829859686645noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-73082711978383477192016-11-23T03:18:09.569+07:002016-11-23T03:18:09.569+07:00I'm having trouble making these breadcrumbs wo...I'm having trouble making these breadcrumbs work in IE 11 and Firefox. The folder navigation works just fine in Chrome and Edge. It's an https:// site, would this be a reason for it not working in IE? Any other ideas?Shazhttps://www.blogger.com/profile/05644424599054892705noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-1274323521261559952016-11-09T03:28:36.805+07:002016-11-09T03:28:36.805+07:00For multiple web parts on the page, I've added...For multiple web parts on the page, I've added the following code in folderNavigation() after checking renderCtx.rootFolder. Since clicking on a folder in one web part causes the other web part(s) to render displaying the root, I am just not doing anything if the root folder in the URL and the list URL of the web part being rendered do not match. This means I am only seeing the crumbing for the web part that corresponds to the one in which I clicked on a folder. Not heavily tested but seems to work for my purposes.<br /><br />var listUrl = encodeURIComponent(renderCtx.listUrlDir.replace("%20", " "));<br />if (renderCtx.rootFolder.indexOf(listUrl) === -1) {<br /> return;<br />}<br />Joshhttps://www.blogger.com/profile/01781731545687844220noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-29420037548606751832016-06-16T15:30:56.544+07:002016-06-16T15:30:56.544+07:00Thank you so muchThank you so muchpitsohttps://www.blogger.com/profile/16817479498617161427noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-10464366905465037342016-05-10T02:29:50.378+07:002016-05-10T02:29:50.378+07:00First off – love this script. One thing noticed i...First off – love this script. One thing noticed in practice… if you have a long list in which you have to scroll to select your folders – if then the selected folder also has a long list of files/folders, that the script will lands you in the middle of the page – Not at the top as expected. You have to scroll up to get to the top of the list. Anonymoushttps://www.blogger.com/profile/04243628771656266581noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-79652973413644409252016-04-01T17:58:57.837+07:002016-04-01T17:58:57.837+07:00Thanx manThanx manAnonymoushttps://www.blogger.com/profile/14506790803366335652noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-37663935495234484412016-02-23T16:06:39.559+07:002016-02-23T16:06:39.559+07:00Thanks. I managed to add Shaded look to the docume...Thanks. I managed to add Shaded look to the document library web part by adding below code on a script editor Web Part on the page where the Document Library Web part is created.<br /><br />style type="text/css"><br />tr:nth-child(even){background:#f1f1f1}<br />/style><br /><br />(Open and close the style tags< blog does not allow me to save the comment if I use Style tags)Anonymoushttps://www.blogger.com/profile/07557155207192033499noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-69009904142057867202016-02-19T02:03:05.661+07:002016-02-19T02:03:05.661+07:00hi - great solution, except I am having the same p...hi - great solution, except I am having the same problem as the posters above. it breaks my style I have set on my webpart view... how do I get around that?swanklogichttps://www.blogger.com/profile/18212052012160134392noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-29815252702141224922016-02-15T19:46:21.788+07:002016-02-15T19:46:21.788+07:00Please use browser developer toolbar (or take help...Please use browser developer toolbar (or take help from any web developer) on applying css style to the breadcrumb.Anonymoushttps://www.blogger.com/profile/15485221969375347012noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-10868242101305753292016-02-15T19:35:06.294+07:002016-02-15T19:35:06.294+07:00Any update about sameAny update about sameAnonymoushttps://www.blogger.com/profile/07557155207192033499noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-8297825312098266682016-02-12T18:22:41.690+07:002016-02-12T18:22:41.690+07:00@Adrian, thanks for sharing. @Adrian, thanks for sharing. Anonymoushttps://www.blogger.com/profile/15485221969375347012noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-47705232698345181312016-02-05T15:08:51.678+07:002016-02-05T15:08:51.678+07:00Hi Sohel,
I was able to add the Breadcrumb on a d...Hi Sohel,<br /><br />I was able to add the Breadcrumb on a document library web part. However when I apply style on the library view (e.g. shaded view in web part setting) the style is not applied on the web part. Can you please me help sort out this issue?Anonymoushttps://www.blogger.com/profile/07557155207192033499noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-26681529822368295202016-02-01T01:24:59.897+07:002016-02-01T01:24:59.897+07:00Hi Sohel
I added an improved version of your scrip...Hi Sohel<br />I added an improved version of your script to the free and easy deployment tool Plain 365 (https://fiechter.eu/p365/). This is intended for users which don't really want to play around with java script, SharePoint Designer and other things.<br />Also the blog post announcing the feature is referencing your blog <br />https://fiechter.eu/2016/01/31/breadcrumb-for-sharepoint-document-libraries/Adrianhttps://www.blogger.com/profile/02528513683764410884noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-43869863440225349972015-11-07T03:42:35.387+07:002015-11-07T03:42:35.387+07:00Hi Sohel,
Thanks for the script it works fine. Per...Hi Sohel,<br />Thanks for the script it works fine. Perfect.Anithahttps://www.blogger.com/profile/06028761752291962117noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-70256804022906359252015-10-20T08:01:11.674+07:002015-10-20T08:01:11.674+07:00Shouldn't have any issues with Browser compati...Shouldn't have any issues with Browser compatibility mode. Please try with SharePoint default master page as custom branding/scripting may cause issues.Anonymoushttps://www.blogger.com/profile/15485221969375347012noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-68631309490959926242015-10-19T16:24:35.966+07:002015-10-19T16:24:35.966+07:00Hi
Its not working for me if the browser in ...Hi<br /> Its not working for me if the browser in compatible mode. any ideas?<br />Thanks in Advance!Yathnihttps://www.blogger.com/profile/09205018102613020830noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-1413030201333877602015-10-07T14:16:39.416+07:002015-10-07T14:16:39.416+07:00Many thanks brother, just used your functionality ...Many thanks brother, just used your functionality today, definitely saved me couple of hours.. I think NEC should bill Ignia for 2 hours, hahaha... CheersShivank Kaulhttps://www.blogger.com/profile/14636264815303912690noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-52430982075345009912015-09-30T02:15:40.934+07:002015-09-30T02:15:40.934+07:00Then make sure Minimal Download Strategy is enable...Then make sure Minimal Download Strategy is enabled and use the latest version of the script that supports MDS.SabbeRubbishhttps://www.blogger.com/profile/06495130281525480345noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-65820276601312120312015-09-29T23:45:44.665+07:002015-09-29T23:45:44.665+07:00I think I have it working now, whole page reload i...I think I have it working now, whole page reload is a bit painful on folder select through!Anonymoushttps://www.blogger.com/profile/14573437954692945401noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-8463797296401901642015-09-29T22:44:26.456+07:002015-09-29T22:44:26.456+07:00Just include the code in your master page (the .ht...Just include the code in your master page (the .html, not the .master) and you're set to go. Make sure you also add the JS file in your Asset library.<br />This should work in SP Online just as well, no magic happening anywhere on server side.SabbeRubbishhttps://www.blogger.com/profile/06495130281525480345noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-35414037615245232832015-09-29T22:39:26.896+07:002015-09-29T22:39:26.896+07:00any idea how? SPonline?any idea how? SPonline?Anonymoushttps://www.blogger.com/profile/14573437954692945401noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-34424593159427987172015-09-29T22:33:31.137+07:002015-09-29T22:33:31.137+07:00Hi Unknown,
I've actually managed to get it t...Hi Unknown,<br /><br />I've actually managed to get it to work on a page with multiple listview webparts using the default code.SabbeRubbishhttps://www.blogger.com/profile/06495130281525480345noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-75143811650970317872015-09-29T22:31:13.242+07:002015-09-29T22:31:13.242+07:00Hi
Any update on multiple views on the same page ...Hi<br /><br />Any update on multiple views on the same page - was really exciting to see on first webpart and was gutted not to work on the others - by far the nicest solution out there, please update for us :)Anonymoushttps://www.blogger.com/profile/14573437954692945401noreply@blogger.comtag:blogger.com,1999:blog-1804865242850018128.post-56118387065910170942015-09-04T14:05:19.172+07:002015-09-04T14:05:19.172+07:00Great Script! but when I change view setting( styl...Great Script! but when I change view setting( style>default to preview) , it doesn't work.<br />Can't use this script in preview style ?Anonymoushttps://www.blogger.com/profile/05355767823927660421noreply@blogger.com