Issue: Clicking "SHOW MORE POSTS" on your site's feed does not display posts older than 7 days. Cause: The Newsfeed is configured to display posts that are available in the Feed Cache. By default, the feed cache only retains posts from the last 7 days. Any post older than that will not be displayed when … Continue reading Newsfeed’s “SHOW MORE POSTS” Not Displaying More Posts
Web Parts
Keep Results Empty Until User Searches
Scenario: When you navigate to a custom search page, the Search Results web part is already populated even though you haven't searched for anything yet. You want the Search Results web part to remain empty until a user searches for something. Solution: Wrap the query template. {?{searchboxquery}} 1. Edit the page 2. Edit the Search … Continue reading Keep Results Empty Until User Searches
Custom XSL Web Part Error – Access Denied
Scenario: I created a custom XSL style sheet for a library web part that would intermittently throw an error for everyone except the admin account (me). Every morning users were complaining about an error on the web part. I would sign in and try to replicate, but it always worked for me. Then when I'd … Continue reading Custom XSL Web Part Error – Access Denied
Chart Web Part – SharePoint 2013
In SharePoint 2010, there was a Chart Web Part that you could connect to another web part on the same page, to a list anywhere in the site collection, to an external content type, or to data from an Excel workbook. In SharePoint 2013, this does not exist OOB. However, if you copy and paste this code … Continue reading Chart Web Part – SharePoint 2013
Link To New Item Form
Give users the ability to add items to a list without showing the entire list web part. In my example, I've added a "Submit Request" button to a Document Set Welcome Page. Clicking this will open the New Item form for my Tickets list. Steps: 1. Add a Script Editor web part to your page. 2. … Continue reading Link To New Item Form
Edit Form Popup – Drag And Drop
By default, the edit form does not pop up when you drag and drop documents into a library. This piece of JavaScript will force an edit form to pop up for as many documents you drag and drop. For example, if you drag 5 documents at the same time, 5 individual edit forms will pop … Continue reading Edit Form Popup – Drag And Drop
Drop-Down Menu Of Links
To add a drop-down menu populated by links to other parts of your site, add a Script Editor Web Part and embed the following code: Make sure you replace the URL with your site's URL, and change the option values to the names of your pages. The text between the option tag is the title of the page … Continue reading Drop-Down Menu Of Links
Custom Quick Edit Button
To add a custom Quick Edit button to a page or view, add a Script Editor Web Part and embed the following code. Make sure you change the number in [WPQ2SchemaData] to the ID of the Web Part you want to Quick Edit. You can find that by inspecting the list or library Web Part using … Continue reading Custom Quick Edit Button
Audit Web Part Locations
Through PowerShell, you can export a csv list of every single app and web part and the URLs where they exist. This is useful for keeping track of where apps are visible and who has access to them. The script will prompt you for the URL. Enter the entire URL of the top site collection site. For … Continue reading Audit Web Part Locations