Wednesday, December 24, 2014


SharePoint 2013/2010 -Go Up folder in Document Library

Issue:
Some time when we customize the tile/navigation/breadcrumb, the link to document folder go up folder by will go missing. Here is a simple hack for it.

Resolution:
Just paste this code in content editor or script editor, and add an image suitable with updating the link.
PS: correct the links of folder to you library and site location. (highlighted part)

<script type="text/javascript">
function getParameterByName(name) {    name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),        results = regex.exec(location.search);           return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));}

function GoUPFolder(){
if(getParameterByName('RootFolder')!="" && getParameterByName('RootFolder')!= "/teams/site/doclib"){
var url = getParameterByName('RootFolder').split("/");
var upfolder="";
for( var i=1; i< url.length-1; i++)
{upfolder=upfolder+"/" + url[i];}
window.location.href = "/teams/site/doclib/?RootFolder=" + upfolder;}
else{window.location.href = "/teams/site/doclib";}
}
</script>

<div id="divUpLink">
<img onclick="GoUPFolder();" style="cursor: pointer;" src='/teams/site/images/UpButton.gif'/>
</div>



Happy Browsing!
Relax..

Friday, October 10, 2014

SharePoint 2013/2010 - Model Dialog errors out when you use Site Pages


Issue
When you try to include a page from Site Page library in a Model Dialog box, SharePoint gives error with query parameter &IsDlg=1 and if you open the same page in normal browser without &IsDlg=1 , then it works fine.

Resolution
SharePoint  model pop will look for the webpart layout in the model pop page and the Site Pages are made of wiki layout, it fails. Try creating the page in the Pages Library with webpart layout and use in the model dialog, then it will work fine.



Happy Browsing!
Relax..

Friday, September 19, 2014

SharePoint 2013 - Setting up folder level Alert


If you are looking to set alerts for a specific folder and its contents, then please follow the steps


1. Look at the folder you want alerts on, from within the library, don't go into the folder.
2. Click on the '...' setting button for the folder you want an alert on
3. Click on the next '...' button and choose 'View Properties'
4. You should now be looking at the properties of the folder you want an alert on
5. Press the 'Alert Me' button from the ribbon.
6. Please Ensure the Alert Name includes the Document Library and its folder name . ex: Documents:Images
6.  Click on OK.

This should set the alert on the folder only, not the parent library.


Happy Browsing!
Relax..