Page Editor Experience – Add a Datasource in a Presentation Component

Dear Sitecore Family,

The previous post, was about Configuring a Datasource in a Presentation Component and my friend Nikki Punjabi suggested that it doesn’t feel complete without showing the steps to add a datasource to a component. In a way, I agreed to his point, that the post seemed incomplete.

So this post is about the steps to add a Datasource in a Presentation Component – in our case a Sublayout. And as we are talking about Page Editor Experience, I’ll present the steps for adding via Page Editor.

Steps:

  1. Login to Sitecore and open the Page Editor.
  2. Next, from the Page Editor Ribbon Click on the button Add a New Component.Page-Editor-Add-Component
  3. If the above shown button is disabled then it either means you don’t have rights or the Designing Checkbox is unchecked. Hence, go to the View Tab on the Ribbon and check the Designing Checkbox. Next, On clicking that button, We get the option of adding a new Component as below.Add-Component-Option-Add-To-Here
  4. These “Add to here” buttons show the location where we can add components, in the specific placeholders – in our case – sidebar and content. Click this button and we get an option of selecting a rendering. Select the Featured Posts component, check the checkbox “Open the Properties dialog box immediately.” and click select.Add-Component-Select-Rendering
  5. And the component is added. Now, the Properties dialog will open. Add-Placeholder-Open-Properties-Window
  6. Next, click on Browse, and Select the Datasource from the Select the Associated Content Dialog. Add-Component-Select-Associated-Content
  7. Now, Click Ok and the Item ID of your Datasource Item will appear in the Properties Window Datasource Field. Add-Component-DataSource-Selected
  8. Click on Ok and the component is rendered on the Page as below.DataSource-Appears-on-Page-Editor

Hope this post was helpful and that it now completes the previous one!

Happy Sitecoring!

Advertisements

2 thoughts on “Page Editor Experience – Add a Datasource in a Presentation Component

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s