Clicking View Properties on a SharePoint list item loads a display form which shows all the list columns and their values. I needed to remove one of the list columns from a display form and in this post I’ll show you how I did it. I’m going to remove the specific image column in the screenshot below.
In SharePoint Designer open the list you want to customise. In the Forms section click New.
Provide a file name and select the form type you want to create. Here I’m creating a display item form. I’ve chosen to set the new form as the default display form as I want to override the default form.
In the Forms section right-click on the form and select Edit File in Advanced Mode.
Switch to code view and select the HTML for the row you want to remove. Each row is displayed withing <tr></tr> table row tags. In the screenshot below I’ve selected the row which displays the jurisdiction column. Once you’ve selected the correct row click delete.
Save your changes. When you click on the list item and select view properties you’ll see that the row has been removed.
If your list contains attachments please be aware of the following bug whereby attachments aren’t displayed in the custom display form. See the KB article for more information and a workaround.
“SharePoint Designer created display forms do not display attachments when present.”
By default, search refiners in SharePoint 2013 don’t show a result count. However, it’s easy to enable them with one change to the filter display template. Below is how a refiner appears by default
The easiest way to work with display templates is to map a drive to \\%SHAREPOINTSERVER%@80\_catalogs\masterpage\. Expand the folder tree and navigate to the Filters folder. Backup a copy of Filter_Default.html before making changes.
Open Filter_Default.html in a text editor, I like to use Notepad++. Navigate to the section as shown below and change the “ShowCounts:” value from false to true. Save your changes.
Refresh the search page and refiner counts are now visible.
The Blank Web Part Page template in SharePoint 2013 has a large Page Content section. I find this irritating as you have to scroll down to get to the web part section. In this post I’ll show how you can reduce the size of this section to make editing pages easier.
Open SharePoint Designer and navigate to the Page Layouts section. Check Out the BlankWebPartPage.aspx file.
Open the file and Advanced Mode. Scroll down to the line starting <PublishingWebControls:RichHtmlField FieldName=”PublishingPageContent”. Find the property MinimumEditHeight and change the value to something like 50px.
Check In BlankWebPartPage.aspx and Publish a major version.
When you create a page using this template you’ll see the Page Content section is smaller.