Display different fields in the org chart boxes

by Ona » Tue May 30, 2017 5:19 am

Is it possible to display different Fields in the Org Chart Box depending of a User Profile Field value?
Example: I want to display "Department" for some employees and "Office" for others.

I use User Profiles as Data Source.

Regards
Ona
Ona
 
Posts: 4
Joined: Fri Jun 05, 2015 7:00 am

by Ona » Wed Jun 07, 2017 9:45 am

I found that I can check on a User Profile field and use the 'HTML mode' in Box template to resolve this.
The Box template now look like this:

<Div class = "pl-item-photo">
   {{#if PictureURL}}
     {{#detailsTooltipLink}}
       {{SafeImage PictureURL}}
     {{/ DetailsTooltipLink}}
   {{/ If}}
</ Div>
<Div class = "pl-item-fields">
   <Div class = "field-container header-field">
     {{#detailsTooltipLink}}
       {{PreferredName}}
     {{/ DetailsTooltipLink}}
   </ Div>
   {{#if leader}}
     <Div class = "field-container">
       {{Department}}
     </ Div>
   {{Else}}
     <Div class = "field-container">
       {{Office}}
     </ Div>
   {{/ If}}
</ Div>
Last edited by Ona on Thu Jun 08, 2017 5:11 am, edited 1 time in total.
Ona
 
Posts: 4
Joined: Fri Jun 05, 2015 7:00 am

by andrelima » Wed Jun 07, 2017 1:48 pm

Hello,
You are correct.

The "HTML mode" gives a lot of options for users to customize it accordingly.
Please make sure to check the field names for reference too.

Best regards,
Andre Lima
Plumsail Team.
User avatar
andrelima
 
Posts: 60
Joined: Wed Apr 19, 2017 2:06 pm


Return to Org Chart for SharePoint 2013

cron