Skip to main content

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
0 votes
0 answers
39 views

Custom Validation-Make any one Field required at item level in Rendering Parameters template

Created custom item validation rule and in standard values of parameter template as suggested in below mentioned link. Make one of two sitecore content fields required? Here requirement is to validate ...
Bhanu's user avatar
  • 1
0 votes
1 answer
37 views

Rendering Parameter is not getting serialized to Layout service

I have a checkbox as a rendering parameter for a rendering. But I am not getting it in layout service response when its unchecked. However, if its checked I get it inside layout service response as 1. ...
Rashmi Ranjan's user avatar
1 vote
1 answer
65 views

Change rendering parameter when rendering is added to a page with a specific template

I have a rendering parameter used all over my site with a field called breakpoint and a standard value of medium. On a specific page template, I want that value to be large when the rendering is added ...
Chris Auer's user avatar
  • 13.1k
0 votes
1 answer
44 views

How to add rendering along with data block?

I have a requirement to build several components for a basic page, component such as TwoColumnsRichText, ThreeColumnsRichText, CallToActionBlock, etc. they want the flexibility add one or more of ...
John Lee's user avatar
0 votes
2 answers
61 views

Load value dynamically in edit component properties window

I have a checkbox field(includelevel2) and I need to load the value dynamically in a droptree field(parent folder) based on the checkbox event. Is it possible to achieve because both the fields are ...
UserSc's user avatar
  • 1
1 vote
2 answers
139 views

Custom item:saving breaking Final renderings Sitecore 10.2

Working in Sitecore 10.2, we have a new site that we've added custom processors to to update fields on item:save that need to be automatically generated. We have a very simple processor that sets a ...
Erica Stockwell-Alpert's user avatar
1 vote
6 answers
543 views

How to enable Caching on Page Level for a particular component

I want to enable caching on Spotlight Widget Rendering, which is added on multiple pages. And we want to enable it for 2 sites only. Can anyone please help me in this?
Vishal Khera's user avatar
0 votes
2 answers
64 views

How to get a specific Sitecore rendering parameter from any razor file?

I have created a rendering parameter. It is bound to a rendering called ProductRendering in its parameters template. This rendering is a controller rendering and points to a razor file called product....
coder's user avatar
  • 25
2 votes
1 answer
111 views

Vanishing Data Source, Placeholder, etc Fields When Rendering Parameters Template Set

In Sitecore 10.1, when I set the Parameters Template in my rendering, the Edit component properties dialog shows the expected parameters fields but all other fields, including Data Source, Placeholder,...
Aron Boyette's user avatar
1 vote
3 answers
367 views

Unable to read Rendering Parameters template fields using powershell

There is a page template called X being used to create a number of pages. There are two renderings A and B being used on many pages that created from X page template. Now I want to set the one ...
Visva Kiruthika Muthuraj's user avatar
1 vote
2 answers
754 views

Getting Rendering Parameter in View

Is there a way to get Rendering Parameter in cshtml view file without the glass mapper model? The existing View is already using a model. So want to get the parameter without a model or glass mapper. ...
Debaparna's user avatar
  • 507
1 vote
1 answer
259 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 ...
Álvaro Montenegro's user avatar
2 votes
1 answer
976 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. ...
Samke11's user avatar
  • 359
1 vote
1 answer
532 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 ...
sukesh's user avatar
  • 3,146
0 votes
1 answer
137 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 ...
JockeyJohnson's user avatar
2 votes
2 answers
538 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 ...
shimaa elsayed's user avatar
1 vote
1 answer
433 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 ...
shimaa elsayed's user avatar
1 vote
1 answer
229 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 ...
Frank Rosario's user avatar
0 votes
2 answers
471 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 ...
Bhawna Jain's user avatar
2 votes
1 answer
978 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: ...
Jorge Pimenta's user avatar
2 votes
2 answers
422 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 ...
Erica Stockwell-Alpert's 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 ...
Erica Stockwell-Alpert's user avatar