Questions tagged [rendering-parameters]

Rendering parameters can be used to pass parameters to Sitecore presentation components. Any question relevant to this concept can make use of this tag.

Filter by
Sorted by
Tagged with
1 vote
1 answer
56 views

Field validation not working in Rendering Parameter Template for MVC form

I've assigned a Parameter Template in the MVC form rendering called Redirect Parameters (/sitecore/layout/Renderings/System/Forms/Mvc Form) as shown in below screnshot Within this template, I've ...
user avatar
2 votes
1 answer
196 views

How to get the value from rendering parameters from VariantListsRenderingModel?

How to get the value from this type of model in the code. I have a simple carousel and I can get values easily from fields now I just want to get the Rendering Parameters for this specific rendering. ...
user avatar
  • 349
1 vote
1 answer
174 views

Checkbox Rendering Parameter is taking value from standard values if not checked

Using Sitecore 10.1 I have a rendering parameter with two fields - Checkbox (Show Icon) & a Single-Line textbox (Css Class). The standard values for this rendering parameter template are set to ...
user avatar
  • 2,547
0 votes
1 answer
65 views

Is it possible to disable a rendering after it has been chosen in the Experience Editor? [duplicate]

as the title suggests, I would like to know if it's possible to disable the selection of a specific rendering in the experience editor after it has been chosen. For instance after I have chosen and ...
user avatar
2 votes
2 answers
247 views

How to use rendering parameters in shared component using Sitecore JSS

I am using Sitecore 10 with Angular app JSS, I created shared component "Header" like that: I have a rendering parameters background field, I need to add it in yml files of pages to be ...
user avatar
1 vote
1 answer
265 views

Model.VariantFields return null when creating custom SXA rendering with variants

I created custom SXA rendering with variants but Model.VariantFields return null. my controller public class NotificationController : VariantsController { protected NotificationRepo ...
user avatar
1 vote
1 answer
168 views

SXA Search box - add SXA token support to Rendering parameter for SearchPageResults

We have an SXA Search box defined on a partial design in our Master Shared site. The problem is we need to have the SearchPageResults rendering parameter field use a query to pull the search results ...
user avatar
0 votes
2 answers
264 views

Not able to use parameter with dynamic placeholder

I am going through Sitecore training and currently stuck on module working with component parameters Here I am trying to change the number of spaces by passing through a parameter. Here is my code ...
user avatar
2 votes
1 answer
562 views

Get sxa component rendering parameter into variant data-attribute field

I'm currently trying to get rendering parameters from a component into a variant data-attribute, is this possible ootb in sitecore 9.3 ? I heard about Scriban but i'm still new to that. For example: ...
user avatar
2 votes
2 answers
202 views

Modifying renderings programatically - can update the Shared Layout and Final Layout together but can't seem to only update the Final Layout?

I'm working on a script to modify rendering parameters. I noticed that I seem to only be able to modify the Shared Layout and not the Final Layout. I can retrieve the Final Layout field and work based ...
user avatar
4 votes
2 answers
2k views

How can I edit rendering parameters programatically?

I have a rendering that is used on pages all over my site, and I had to add a new field to the Rendering Parameters it uses. I now need to update this field on a huge number of renderings, but only on ...
user avatar