Sunday 20 September 2015

Navigation Option was displaying only 50 items

We recently faced an issue while setting up top link bar on our sites, as we were using publishing  sites, we can see Navigation option instead of top link bar on site settings page.

After checking Navigation option we got to know that some of the links were not showing on top link bar and we were unable to change the position of few of the links.

After searching we got to know by default you can see only 50 items on Navigation items and if you want to increase it, there is a procedure to do that..

Below is the procedure to fix this issue :

Locate the web.config file on your server and do the below changes

<add name="CombinedNavSiteMapProvider" description="CMS provider for Combined navigation" type="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" NavigationType="Combined" EncodeOutput="true" />
<add name="CurrentNavSiteMapProvider" description="CMS provider for Current navigation" type="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" NavigationType="Current" EncodeOutput="true" />
<add name="CurrentNavSiteMapProviderNoEncode" description="CMS provider for Current navigation, no encoding of output" type="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" NavigationType="Current" EncodeOutput="false" />
Add a DynamicChildLimit="0" before the end tag "/>" on each line to disable the default 50elements limit:
Thanks !

Tuesday 15 September 2015

Shared Document library page got corrupt


Recently I was reported for an issue in which user tried to upload a document and the shared document library AllItems.aspx page got corrupt and not working at all.

I dig-in the issue and found that somehow knowingly or unknowingly someone tried to alter AllItems view which caused the page to get corrupted.

Now the issue was how to create a default view for shared document library to make the library working again..

So here is the solution steps:





1) Open site that contains the library

2) Click on “Site Actions” >> “Site Settings” to view the site settings page “_layouts/settings.aspx”

3) Click on the Site list and library option under Site Administration heading and then click on the library name that displays the error to view the library’s settings page.


4) And create a new view for document library and make it as default view for document library and save it.  And here you go!

You can browse the document library and it should work.!

Enjoy!
Keep Learning :)





Sunday 13 September 2015

Move Wiki Pages to another library


Recently my lead asked me to move old wiki pages from one library to another, I was searching for traditional option of move to other location but to my surprise, I didn't find that option , I did some research and found that option is only available for normal document library and not for Wiki document library.

I did some search and found below method to move wiki pages from one library to another within same site or different site.

To move Wiki pages,

  1. Go to Site Settings page of main site (site collection).

  2. Go to the ‘Site Content and Structure’ page. You can access this site with either Site Actions > Site Settings or http://portal/_Layouts/sitemanager.aspx
  3. Navigate to your source List or Document Library and mark all the items that you would like to have moved. Then click on Actions > Move
  4. You’ll then be prompted with a pop-up that will let you navigate to your destination List or Document Library. After you find that, just press the OK button and you’ll be good to go!

Enjoy!!

Hide Time from events in Calendar list or webpart Use below code in content edit webpart or by editing list page in SharePoint designer ...