Wednesday, July 7, 2021

Rendering Variant with References/Links

 Hello !!!

If you are new to Rendering Variant, please start from my previous blog

Rendering Variant

Using the rendering variant reference item to display fields from a linked item

ØI added the new field in my Blog template as Authors


ØThe blog pages have the related products selected from a list:

Create the rendering variant reference item

1. In the Content Editor, navigate to Presentation/Rendering Variants, right-click Page Content, and click Insert, Variant Definition.

2. Enter Post Author and click Ok.

3. Next, let's create a rendering variant reference item that goes to the author field of the blog post, and renders the content of that field.

Right-click the Post Author variant, click Insert, click Reference, enter Authors, and click Ok. The Pass-through field defines the name of the field from the nested item. The rendering variant now passes through the author's field.




Render the fields from linked item

ØFirst, create a wrapper by adding a section. Right-click Post Author, click Section, enter HeadingWrapper, and click OK.

ØTo defines the fields that the rendering variant displays, you can now add child items.

ØThis is our Author Template, so we have to create the field for this
















 





No comments:

Post a Comment

Steps to follow when using a PowerShell script to modify the goals in Sitecore

I have previously utilized PowerShell for item creation, modification, deletion, and presentation details in Sitecore.   Ø Recently, I attem...