Posts

Showing posts from June, 2012

The super user account utilized by the cache is not configured

Resolving "The super user account utilized by the cache is not configured." If you have a SharePoint Publishing site and you check the event viewer every once in a while you might see the following warning in there: Object Cache: The super user account utilized by the cache is not configured. This can increase the number of cache misses, which causes the page requests to consume unneccesary system resources. To configure the account use the following command 'stsadm -o setproperty -propertyname portalsuperuseraccount -propertyvalue account -url webappurl'. The account should be any account that has Full Control access to the SharePoint databases but is not an application pool account. Additional Data: Current default super user account: SHAREPOINT\system This means that the cache accounts for your web application aren’t properly set and that there will be a lot of cache misses. If a cache miss occurs the page the user requested wil

Hide Workflow History in WrkStat.aspx

Image
There are times when you want to show the Workflow History only to Admin Users and not for normal users. But whenever a user clicks on the status of the Workflow, it redirects to the _layouts/WrkStat.asp and shows all information for all users. In order to avoid that, we can take advantage of the SPSecurityTrimmedControl. Open the WrkStat.aspx from 14->template->layouts in Visual Studio and then add <Sharepoint:SPSecurityTrimmedControl runat="server" Permissions="ManageLists"> in Line 128 and close the tag in Line 239. You will have the Workflow History Page appear like this for non-admin users :)

Showing QuickLaunch in a WebPart Page

With SharePoint 2007 all you needed to do was edit the page in SharePoint Designer and remove the following 2 lines: < asp:Content ContentPlaceHolderId=”PlaceHolderNavSpacer” runat=”server”></asp:Content> < asp:Content ContentPlaceHolderId=”PlaceHolderLeftNavBar” runat=”server”></asp:Content> With SharePoint 2010 you also need to delete the following: < style type=”text/css”> body #s4-leftpanel { display:none; } .s4-ca { margin-left:0px; } </style> The quick launch will now display on the web part page. Make sure you do this in the Advanced Editor Mode of this WebPart page.