Friday, December 25, 2015

Term store management Link Missing from Site settings in SharePoint 2013


In SharePoint 2010 the termstore management link is available for site owners by default. This link is missing in SharePoint 2013 for site owners. Being a site owner, they should be able to navigate to the link in site settings. 

image

The first thing to check is if you have the permissions (Owners) on the site. Validated the same and the link is still missing.



After some testing I found out, that the permission causing that issue was “Apply Themes and Borders” at web app level. In central administration navigate to manage web applications, select the application where you have the site collection created. In the Ribbon select User Permissions and check for "Apply Themes and Borders". Once this permission is checked navigate to site collection>> site settings. you will now see the link.

 I cannot see any relationship to the Term Store Management functionality, but as soon as I granted that permission to the users, they would see that link. Strange! I would be glad if someone has an explanation for that. Microsoft describes that permission as “Apply a theme or borders to the whole website.”

In case this permission needs to be unchecked then only workaround is to navigate the URL “/_layouts/15/termstoremanager.aspx” to the users. As this is the case for us too.

Happy SharePointing...



Monday, July 27, 2015


Wrapping Global Navigation in SharePoint 2013


In SharePoint 2013 if number of links in the global navigation increases, the links are not wrapped by default. The links were aligned in single line. Sometimes the links are more in number that people started complaining about search bar is not available even though the search bar is available in the right corner of the page. Users never realized the horizontal bar at the bottom of the page. If we scroll to the right corner of the page we can see the search bar. Talking about user experience this looks very weird. 

In order to fix this issue some of the css classes needs to be updated which will help in wrapping the global navigation in SharePoint 2013. Below are the some of the css classes:-

.ms-core-pageTitle{
    font-size:2em;
}
.ms-core-listMenu-horizontalBox ul, .ms-core-listMenu-horizontalBox li, .ms-core-listMenu-horizontalBox 
.ms-core-listMenu-item, .ms-core-listMenu-horizontalBox > ul > li > table
{
    display :inline !important;
}
.ms-core-listMenu-horizontalBox
{
    display:inline !important;
}
#s4-titlerow{
    height:inherit !important;
}

.ms-breadcrumb-top
{
    white-space:normal !important;
    border-bottom:medium;
    border-bottom-width:1px;
    padding-bottom: 10px;
    font-weight:bold;
}
.ms-core-listMenu-horizontalBox .additional-background.dynamic-children{
    padding-bottom:26px;
    background-position:center;
    display:inline !important;
}
ul.dynamic {
    background-color:#ECEBEB !important;
    display:inline-block !important;
    font-weight:normal;
    padding:3px,10px;
}
li.dynamic .menu-item-text  {
    display:inline-block !important;
    padding-bottom: 10px;
    padding-right:0px;
    background-repeat:no-repeat;
    background-position : bottom,center !important;
    color:black !important;

}

Hope this helps in resolving the issue you are facing.

Happy SharePointing......

Friday, July 24, 2015

Enable Ribbon on item selection in SharePoint 2013

With every version of SharePoint Microsoft changes a lot that its hard to adjust with new version. It takes bit of time to get used to the new changes in new version. Just an example In SharePoint 2007 the Site Actions menu was in the right corner of the screen, in SharePoint 2010 the Site Actions moved to left of the screen, again in SharePoint 2013 the Site Actions(gear icon) is moved to the right corner of the screen.

In SharePoint 2010 the ribbon is by default selected when an item is selected, but in SharePoint 2013 the ribbon is not selected by default. So I tried hard to find a setting which can help in enabling the ribbon by default. But no luck. Tried searching a lot but didn't find a direct way to do so. Here in this article I will help you in enabling the ribbon when selecting an item in SharePoint 2013.

Why by default the ribbon is not selected in SharePoint 2013

The new UI reflects their “Minimal Download Strategy” in SharePoint 2013 that improves rendering performance when browsing content where large parts of the page do not change, which provides a more fluid navigation experience. 

How Ribbon can be enabled

This can be achieved using JavaScript which can be included in the masterpage. The JavaScript will handle all types of lists and libraries.

// JavaScript source code

function ShowItemsMenuWhenItemsSelected() {
    var oldToggleItemRowSelection = ToggleItemRowSelection;
    ToggleItemRowSelection = function (ctxCur, tr, fSelect, a, b) {
        oldToggleItemRowSelection(ctxCur, tr, fSelect, a, b)
        
        if ((ctxCur.CurrentSelectedItems > 0) && (ctxCur.listBaseType == 0) && (ctxCur.ListTemplateType == 171)) {
            SelectRibbonTab("Ribbon.Tasks", true);  //open the ribbon for tasks list
        }
        else if ((ctxCur.CurrentSelectedItems > 0) && (ctxCur.listBaseType == 1)) {
            SelectRibbonTab("Ribbon.Document", true);  //open the ribbon for Documents Library
        }
        else if (ctxCur.CurrentSelectedItems > 0) {
            if ((ctxCur.listBaseType == 0) || (ctxCur.listBaseType == 5))
            {
                SelectRibbonTab("Ribbon.ListItem", true);  //open the ribbon for List items
            }
        }
        else {
            SelectRibbonTab("Ribbon.Read", true);  //close the ribbon
        }
    }

_spBodyOnLoadFunctionNames.push("ShowItemsMenuWhenItemsSelected");

Hope this will help you in resolving the issue.


Happy SharePointing......