How to create templates that define how entries on SharePoint lists are rendered inside Web Parts

In several scenarios, you may have a pre-populated SharePoint list, that you'd wish to map to a relevant BindTuning web part, without needing to migrate any of that content to BindTuning's template lists. 

BindTuning's Web Part smart functionality will help you create a template that defines how the entries on your SharePoint list will be rendered inside the supported Web Parts. Likewise, any new list entry will be automatically added to the Web Part, following the pre-defined rules and, without the need for manual intervention. 

Before we begin

Below are the BindTuning Web Parts that contemplate the option to use SharePoint lists as a source:

  • Filters
  • Smart Tiles
  • Smart Slider

Demo configurations for all these Web Parts can be found below.

Note: The configuration steps will remain consistent, regardless of the above-mentioned web part you wish to utilize.

Source list

The first step in configuring one of the presented web parts sits with creating and/or choosing our default SharePoint list, which will feed its content to the web part of your choosing. 

For demonstration purposes, we have created a Project Management list, which we will be utilizing for the configuration of the web parts mentioned above. 

sp-default-list.PNG

Inside our Projects list, we have created several columns, which we will, subsequently, map to the web part zones: 

  • Manager;
  • Status;
  • Year;
  • Month
  • Deliverables
  • Background
  • Company.

As soon as we have chosen our SharePoint data source (i.e, Projects list), we can proceed to map our columns to a corresponding web part zone. 

Connect to Filters Web Part 

As mentioned above, you're able to pull the information directly from your SharePoint list, to the Filters Web Part. To do so, follow the steps below: 

  1. Add a BindTuning Filters Web Part to our page; 
  2. Click the Configure button;
  3. Create a new BindTuning Filters Template list; 
  4. Under List Settings select Manage Lists;
  5. Under Data Source Url select the option Add List; 
  6. Connect the Data Source Url to the pre-existing SharePoint list (i.e, Projects).

connect-filters.PNG

After setting up all the necessary dependencies, we will need to create the template, whose purpose is to control how our list content is displayed with the web part. To do so, follow the steps below: 

  1. Mouse over the Web Part and select the Add button (+);
  2. Select the Templates List created when adding the web part to the page. 

This will open the configuration form, which we will utilize in order to map our Data Source list columns (Projects) to our BindTuning Template List (Project-Filters-List). 

In this form, we're freely able to map those same columns to any possible zone. 

In order to successfully demonstrate a common configuration scenario, we will be mapping the following columns: 

  • Background
  • Company

Note: It is not required to map all columns inside your data source, as you are able to tailor the pulled information based on your specific requirements. 

Let's say we want to map our Background column (Projects list) to a corresponding zone on the Filters Web Part. We would be able to utilize the Tile Background zone to do so. 

Moreover, we can utilize the Captions zone, so as to display our Company name.

This mapping is done by using the double curly-bracket notation. In this example, we would proceed with the following arrangements: 

  • Tile Background zone will be set to{{Background}}
  • Captions zone will be set to{{Company}} .

map-fields.png

After all the necessary arrangements have been performed, save the configuration and all your SharePoint list entries will show up, following the defined template.

filters-configured.PNG

Connect to Smart Tiles

As mentioned, the configuration for the Smart functionality will remain consistent, regardless of the chosen Web Part. To configure a Smart Tiles, follow the steps below: 

  1. Add a BindTuning Tiles Web Part to our page; 
  2. Click the Configure button;
  3. Create a new BindTuning Tiles List; 
  4. On the top-right corner of the Web Part click the Add button (+);
  5.  Under Tile Type, select Smart Tile;

You'll notice that a new section, titled Connect to a Data Source, showed up on the configuration form. We will be utilizing this same section to connect our SharePoint list (Projects) to our new tile. To do so, select Add List and connect it to your pre-existing SharePoint list (i.e, Projects).

smart-tiles.PNG

 

After this connection has been performed, we will now begin to map the columns on our Projects list to the available Tile Zones.

This time, we will be adding our Manager and Background columns, to the Tile Caption and Tile Background respectively. 

tiles-map-fields.png

Note that we have mapped the column Title, instead of Manager, and that's because we always need to utilize the column's internal name.

To check the correct internal name of the column please follow the steps below:

  1. Access Site contents and open your list;
  2. On the top menu, click on List and then List Settings (or Settings > List Settings);
  3. On the Columns section, click to open the column name you want to use;
  4. Inside, on the URL look for "...Field=...".
  5. Copy the internal name;
  6. Now paste the name into the desired text box section.

As soon as the configuration has been saved, you'll be able to see a slide-like display of all your SharePoint list items (i.e, Projects) inside your Tiles web part.

fully-configured-smart-tile.PNG

Connect to Smart Slider

To connect your SharePoint list to a Smart Slider, follow the steps below: 

  1. Add a BindTuning Slider Web Part to our page; 
  2. Click the Configure button;
  3. Create a new BindTuning Slider List; 
  4. Under List Settings select Manage Slider;
  5. On the form, change from Default Slider to Smart Slider;
  6. Under Template List, connect to the list created in step 3
  7. Under Source List, connect to your pre-existing data source (i.e, Projects), and Save.

smart-slider-list.PNG

After the list configurations have been performed, click on the Add button (+). In the New Slide form, proceed to map the necessary columns to their respective Web Part zones:

configure-slider.PNG

After the necessary mappings have been achieved, hit Publish and your list entries will display in a carousel-like structure. 

slider.PNG

 

Have more questions? Submit a request

Comments

BindTuning logo
Copyright Ⓒ 2021 Bind.
All rights reserved.
Privacy Policy
Cookie Policy
BindTuning
              Linkedin BindTuning Twitter BindTuning YouTube BindTuning Instagram BindTuning
              Facebook
Powered by Zendesk