Archive for the ‘Web Design’ Category

SharePoint 2010 User Profile Properties Disabled

If you've ever come across the following error when looking at Sharepoint 2010 My Sites:

There was a problem retrieving data for this field. Updating values in this field is disabled temporarily. You can still update values in other fields.

Look no further.  This is why:

www.wictorwilen.se

However, you will need to first configure your Managed Metadata Service.  Great Instructions here:

salaudeen.blogspot.com

Clear Sharepoint Cache

After learning to clean the sharepoint cache hardway, I have come up with basic commands, that would help all of who needs to get this done in easier way, below is the script, you can cut and paste it on to a notepad, save the file as clearSPCache.bat file and place it on the sharepoint server, when you execute the file, it will clean the sharepoint cache for you with one click. (assuming your sharepoint is installed in default locations as per microsoft).

========Script Start below===================

cd “%APPDATA%\Microsoft\Web Server Extensions\Cache”

del *.web /S /Q “%APPDATA%\Microsoft\Web Server Extensions\Cache”

cd “%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache\”

rmdir /S /Q “%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache\.”

mkdir “%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache”

dir “%APPDATA%\Microsoft\Web Server Extensions\Cache”
dir “%USERPROFILE%\AppData\Local\Microsoft\WebsiteCache”

pause

========Script End========================

Original:

neelb.wordpress.com

Change Favicon in SharePoint 2010

The easiest way to change your favicon in SharePoint is to replace the default one with your own.

You can find this, among many other default files, here:

\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES\

Original:

blog.drisgill.com

Hide ribbon for Visitors – Using Javascript

This requires you to modify your masterpage just a bit. It's minimal.

In your masterpage, find id="s4-ribbonrow" and add this to it:

style="display:none;"

Then add this after where that div ends

<Sharepoint:SPSecurityTrimmedControl runat="server" Permissions="FullMask">
<script type="text/javascript">
document.getElementById("s4-ribbonrow").style.display = "block";
</script>
</Sharepoint:SPSecurityTrimmedControl>

Your result should be something like this:

<div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle" style="display:none;">
...
</div>
<Sharepoint:SPSecurityTrimmedControl runat="server" Permissions="FullMask">
<script type="text/javascript">
document.getElementById("s4-ribbonrow").style.display = "block";
</script>
</Sharepoint:SPSecurityTrimmedControl>


This will only allow users with Full Control to see the Ribbon.

Original:

sharepoint.stackexchange.com

Hiding View All Site Content and Recycle Bin in SharePoint 2010

Look for the following element in the MasterPage code:

<SharePoint:UIVersionedContent UIVersion="4" runat="server" id="PlaceHolderQuickLaunchBottomV4">
<ContentTemplate>
<ul class="s4-specialNavLinkList">

Above the bold section, add the following line of code:

<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="ManagePermissions">

Change the blue PermissionsString value to whatever you want. Multiple permissions can be separated with a comma (no spaces). Note it should be a permission your target user(s) do not have, and has to come from this list. Spelling and case-sensitivity is important. Finally, add the closing tag after the SharePoint:UIVersionedContent closing tag:

</SharePoint:UIVersionedContent>
</Sharepoint:SPSecurityTrimmedControl>

Original:
oszakiewski.net/

Return top