October 3, 2024

Dear Sitecore Family,

A very small yet useful post today.

Sometime back, we saw how to add a Component with a DataSource. In case you missed it, here’s how we do it.

When we add a presentation Component from Page Editor which requires a Datasource, we need to go and Set associated content for it.

Page-Editor-Set-Associated-Content

Now, for a Business user, its difficult to know that he or she needs to select a Datasource, in case we have some good documentation for it, then its ok. So it becomes the responsibility of the developer, to make things easy for the Business User.

Challenge:

How do we  make things easy for the Page Editor User/Business User?

Solution:

While creating the Sublayout, we are provided with an option as shown below:

Open-Properties-after-AddBy default, the value is “Default” which means No — Let’s make it Yes from the DropDown

Open-Properties-after-Add-Its-a-Yes

After this, whenever the Business User tries to add that particular component onto the page, he/she will find the checkbox to be disabled.

Properties-Dialog-Option-Checked-and-Disabled-while-Adding

And, on adding it on the page, the Properties Dialog will open immediately,

Properties-Dialog-Opened

which in a way, notifies the Business User that some action needs to be taken — Add a Datasource.

 

Hope you liked the post!

Happy Sitecoring! 🙂

1 thought on “Page Editor Experience – Select Associated Content after adding a Presentation Component on Page

Leave a Reply

Your email address will not be published. Required fields are marked *