New User Profile Property – SharePoint 2013

You have a company directory, for example, and you want to be able to filter employees in the company directory based a “unit” property.  To do this you need to create a new unit property in the User Profile Service.

  1. Login to Central Admin
  2. Go to Manage Service Applications
  3. Go to User Profile Service
  4. Select Manage User Properties
    1. Add a new property
  5. Close User Profile Service
  6. Add a new managed property that maps to the People Property you just added.

Close button on Search Results Item return to search page, not list.

You’ve created an intranet page that searches a specific list.  You have created a custom display template where an end user clicks on the title to see more details.  The default “Close” button (<SharePoint:GoBackButton runat=”server: ControlMode=”Display” ID=”gobackbutton2″/>), if clicked, returns the user to the entire list.  You would prefer the user be returned to the intranet search page, not the list.

To do this…

  1. Open the display template in Notepad++ or SharePoint Designer
  2. Delete the default SharePoint close button and add you own with html code setting the location.href property to the search page.

For example; <input type=”button” value=”close” onclick=”location.href=’http://www.yoursitenamehere.com'”/&gt;

 

InfoPath Form – choose “State” only see applicable “Cities” based on that choice

VERY tedious to set this up, but no custom coding.  I’m sure there is a better way to do this, but after beating my head against the wall long enough, this is what I came up with for when you want a choice column for “States” to then only choice applicable “Cities” to choose from.

  1. Custom InfoPath Form
  2. Create Choice field called “State” and manually enter the choices.  This will be the source field.
  3. Create a choice field for each “City” and manually enter the choices.  So there would be a column for “Alabama Cities”, a column for “Colorado Cities”, a column for “Kansas Cities”, etc, etc.
  4. Create a  sections on the form for each City field.
  5. Add rules to hide the City field if the source field does not equal the state.  So, “Alabama Cities” section would be hidden unless “State” = “Alabama”, etc.

Really a lot of work, but easy.

Add Custom Fonts to SharePoint Site

Your company brand uses a particular paid font(s) for all communications and wants the SharePoint branded intranet use those fonts as well.  To do this, you need to create a font-face declaration…

  1. Upload font files to your SharePoint Site Style Library (create a new folder named “font” if needed).
  2. Open the css file that comes with  your font files (created by the font-face generator).
  3. Rearrange the order of the font declaration so it will work in Chrome to the following order:
    .eot
    .svg
    .eot embedded-opentype
    .woff2
    .woff
    .ttf
  4. Copy the font declaration into the top of your main stylesheet and adjust the url path so it points to the fonts you’ve just added.

Reference: Avtex Blog

SharePoint 2013 Videos

If you create an Asset Library to store videos, the video format must be in wmv or mp4 format to work in SharePoint 2013.

Problems:

  • The default threshold for files is 250MB.  (you can change this within the web application, but performance may suffer with a large number of files)
  • Android phones prompt for Silverlight installation to view the video.
  • iPhones prompt for Silverlight installation to view the video.

Solution:

Use YouTube.

  • High quality videos
  • HTML 5 makes viewing possible from any device or OS.
  • Embed YouTube video using CEWP < Ribbon “Insert” < Video and Audio < Embed < enter the iFrame embed code from YouTube.
  • Can also Embed  in SitePage by choosing “Insert” < Embed Code