Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions related to Sitecore presentation components: layouts, sublayouts, renderings, presentation details, etc.

0
votes
0answers
9 views

Not able to change View for Navigation Component using Sitecore SXA Cloning

I have cloned Navigation rendering and changed View path.But still the cloned component is referring original view even though I have changed " Rendering view path" field to point my new View. Kindly ...
0
votes
0answers
15 views

How to assign an SXA Partial design to two different placeholders in a sitecore page? [on hold]

I am new to Sitecore SXA and not at all familiar with Partial and Page design concepts. I just want to know how a partial design (with renderings in placeholder main) can be mapped to a different ...
1
vote
1answer
18 views

Get renderings for a placholder

I am trying to create a report of all placeholders and the rendering options available inside them. For this, I want to get all renderings within a placeholder. Is there a way get I can get all the ...
0
votes
2answers
48 views

How to allow requests to items underneath an JSON endpoint

We are using a JSON based contentstore for one of our projects. We are working with Sitecore 9.0 and SXA for generation JSON documents for our content stores. Now our client asks if we can allow calls ...
0
votes
0answers
25 views

Programmatically check Sitecore A/B Testing configured on the Rendering Component

Is there a way to check Programmatically if there is an A/B Testing that was setup in the Rendering Component? I am not sure where to find this, as I am currently investigating an issue on our ...
1
vote
1answer
61 views

How to change name of external link when viewing in its rendering variant?

I'm using Sitecore 9 and SXA 1.7. I have a template with a "General link with search" field, and I created several items of that template where I need to "insert external link", after that I set the ...
1
vote
1answer
22 views

Cloned Items Not Copying Rendering Parameters From Presentation Details

Sitecore 8.2u4 We are losing rendering parameter values during the cloning process of certain fields. Steps to reproduce: Create a page item (item with Presentation Details) Add a Rendering to the ...
1
vote
1answer
40 views

How to show template name in rendering variant?

I have a template and i want to show the template name in the rendering variant. I have tried to add a "field" type to the variant, and set its name to "template", but that didn't work. I have tried ...
4
votes
0answers
51 views

How to create a custom button for experience editor that creates a new rendering?

Right now I'm in the process of expanding our experience editor functionality. I've followed these articles for adding chrome around renderings and placeholders, and now I'm trying to extend this ...
1
vote
1answer
29 views

Can a sublayout/rendering trigger the item not found pipeline?

I have a sublayout/rendering that lives on a wildcard item within the content tree. For example, at /sitecore/content/home/news/news-features/*/*/*/*. The sublayout/rendering checks an external data ...
5
votes
1answer
86 views

How can i show the tags of each page with an SXA rendering variant?

I have a blog website, and a page where I can view and search in all the blog posts I have so far. Each blog is tagged with 1-2 tags in the "tagging" field in their respective item on Sitecore 9. I'...
3
votes
2answers
67 views

Image not rendering in SXA PageList variant

I need to create an image grid, like this (image and title) using Sitecore's SXA 1.6. I took the approach of using a Page list component to implement this and gave it a media folder as a data source. ...
0
votes
1answer
135 views

SXA Rendering variants

Sitecore newbie here and I wanted to understand variants in Sitecore SXA, and Reading the rendering variants documentation, (https://doc.sitecore.net/sitecore_experience_accelerator/...
8
votes
1answer
95 views

Upgrade path from Integrated Dynamic Placeholders to Sitecore 9 Dynamic Placeholders (OOTB)

Does anyone have a SPE script that could be used to upgrade the rendering parameters of existing content to the new dynamic placeholder style required for Sitecore 9 Dynamic placeholders? We used to ...
0
votes
1answer
60 views

Create sitecore template field with specific condition

one specific requirement in which content editor needs to choose properties by state. I have properties with states field. Now I am planning to create the user-defined template for a content editor to ...
1
vote
1answer
62 views

Creating an internal anchor navigation in SXA

I would need to create a component in SXA that displays a link to all elements on the page that have a h2 title. In a non-SXA site I would know how to do this as I would have control over my ...
1
vote
2answers
116 views

How to avoid folder name in URL

I have site definition up to C. When accessing the properties in the URL Property page name is displayed. How to avoid it? Current Url:Http:/Sitename/en/Propert Page/PropertyName Expected URL:http:...
5
votes
1answer
131 views

Force controller rendering in head of page to render after other renderings

I know that MVC and by definition Sitecore MVC renders components from top to bottom order, but is there any way to force (hack) a controller rendering (which is used in the head of the page) to be ...
0
votes
1answer
43 views

JSS deploy vueJs - then I need to manually Unprotect Layout to add my placeholders

Currently, each time I'm doing deploying jss using jss deploy package -c -d I need to manually unprotect the Item of my App Layout to include my placeholders. Any ideas how to stop this? Thanks
0
votes
0answers
23 views

How to display image in sitecore [duplicate]

How to render a responsive image in the Sitecore? I have an image of size 1200 px have to display the image in thumbnail size.is it possible to do it in Sitecore? Any example or sample is much ...
1
vote
1answer
135 views

How to add rendering at a position programmatically

Following this article, I managed to achieve adding a rendering programmatically. But it will add the new rendering, always at the last position. Is it possible to add it at a particular index/...
3
votes
3answers
119 views

How to create new layout on Sitecore CM server and sync it to Sitecore CD server in Azure Cloud

I'm a newbie on Sitecore. I'm studying the "Get Started" tutorial from Sitecore e-learning website. I have configured Sitecore 9 on Azure, from Azure marketplace, using extra-small sizing having 2 ...
1
vote
1answer
55 views

How to pass data between renderings in sitecore 9.0.1?

For passing data between renderings I have seen this blog. Here they use below method to set data: ContextService.Get().GetCurrent().ViewData.Add("_SharedModel", viewModel); In Sitecore 9.0.1 I ...
0
votes
1answer
73 views

Sitecore Forms Submit Action redirect to a PDF in Media Library

I have a form that, upon submission, should redirect and display a PDF from my media library. Upon submission, I am receiving this error: Does Sitecore 9 Forms require that I provide a layout file ...
0
votes
1answer
263 views

How to get rendering parameters based on Rendering ID

I have a search results listing page where every search results are being updated using AJAX. I set a few rendering parameters like the number of results per page on the rendering because they need to ...
0
votes
0answers
51 views

How to get page item as html string [duplicate]

I have a page item, which includes layout, and some components and it's datasources. I would like to get the html content of this page. How to do that? Thanks,
0
votes
1answer
118 views

Sitecore Edit Frame issue

I am having issues when passing Guid as the data source for edit Frame. When I populate the Guid directly it works fine but while binding it from model am getting an error message Code: @using ...
0
votes
1answer
204 views

Programatically render nested renderings/placeholders from an item [duplicate]

I am working on programatically rendering an item to html in code. I found this question https://sitecore.stackexchange.com/a/6256/1133 which almost serves the purpose of my request, except it isn't ...
0
votes
1answer
268 views

Failed to execute datasource query System.NullReferenceException while setting Datasource on Rendering

Has anyone seen this error before or know how to solve it? 996 16:35:46 WARN Failed to execute datasource query System.NullReferenceException: Object reference not set to an instance of an ...
0
votes
1answer
191 views

The model item passed into the dictionary is of type 'Sitecore.Mvc.Presentation.RenderingModel' but this dictionary requires a model item of type

While accessing the link on website got the below error. Description: An unhandled exception occurred. Exception Details: System.InvalidOperationException: The model item passed into the ...
3
votes
0answers
93 views

CreateCyclePreventer throwing NullReferenceException with final rendering details

I'm running into a weird issue with Sitecore 8.2 Update-6 where after I modify an item (with MVC controls) using the Sitecore Experience Editor I start getting NullReferenceExceptions when I view the ...
1
vote
2answers
106 views

SXA What are the benefits of using rendering variants over simple rendering parameters

From what I can tell, rendering variants are a way to support alternate presentations of a single component. What are the benefits of rendering variants over creating a custom rendering parameters ...
2
votes
2answers
163 views

What are Composite Renderings/Components in SXA

What are composite components or renderings in SXA? (I'm looking for answers describing the inner workings, ideally). I have read about SXA composite components and SXA composite renderings. From ...
2
votes
1answer
157 views

System XML exception for rendering after upgrade

We recently upgrade to Sitecore 9.0 Update-1 from Sitecore 8.2 update 2. When accessing one of the pages in Experience Editor, we get the following error for one of the renderings used for page banner:...
0
votes
1answer
182 views

Reset presentation detail is using Standard values from wrong / old template

I'm trying to migrate a Sitecore page to use a new template with new presentation details in it's Standard values. This template inherits from the currently used template. When I change the page to ...
0
votes
0answers
54 views

Layout Presets That Use Final Layout

I'm using layout presets in order to give content editors an easy way to toggle between two sets of renderings when they begin to edit a page. I have a case where in one language the first preset ...
2
votes
1answer
168 views

What is purpose of the Controllers folder in Layouts?

I've noticed that in /sitecore/layout there is a Controllers folder (first item underneath actually). In that folder you can add items of type Controller. These items have fields for a controller name ...
4
votes
1answer
62 views

Reusable HTML components in third party applications

I have a requirement where in the header and footer of the application can be reused in a third party application to give consistency to multiple application. In Sitecore usually we create header and ...
0
votes
1answer
301 views

Selection of Global or Local Data source in presentation details

Selection of Data Sources in Presentation Details : There are two data sources for the footer component , one at the local repository level and another in the Global Content level. While choosing ...
5
votes
1answer
166 views

Implement personalization on component level

I have a personalization scenario in which we want to change a component (button label) based on a triggered goal. Not very difficult you would think, but the component exists on all pages. It's ...
2
votes
1answer
152 views

Content not displayed on mobile

I'm currently designing a website in SXA. I've encountered an issue wherein the contents of a Tab is appearing in Desktop, but not in Mobile. Inspecting the mobile markup, only the texts in the tab is ...
0
votes
0answers
92 views

Cloning becomes a problem?

When cloning a page, (which I have done yesterday with no issues), I go to the new cloned page, then unclone it, then go to experience editor and get this: (Amended) I've tried it a few times and ...
4
votes
2answers
96 views

What does the parameters object do in the ItemRendering method?

Method definition: public virtual HtmlString ItemRendering(Item item, object parameters); Assumed usage: @Html.Sitecore().ItemRendering( item, new { ThisShouldWork = true } ); Assumed Consumption: ...
6
votes
1answer
101 views

Controlling Layout / Device Layout by culture

I heard it is possible to control your device layout by which culture you are in. I can not find any documentation or examples on this. I see that you can choose a device layout by QueryString or ...
6
votes
0answers
76 views

A rendering snippets in Web Forms

I would like to add a rendering that also has some other rendering added to its own place holder ahead of time. An example is to add a striped rendering and place a 1 column grid rendering in the ...
4
votes
1answer
262 views

Dynamic content in body copy based on url parameter

A newbie question please: I have a URL: www.example.com/?location=London I want to change a part of the title, headline and body text from the default value (UK) to the supplied value (say London). ...
0
votes
0answers
21 views

Restrict number of Components on Page [duplicate]

We need to enforce a rule where a specific component can only come once on specific Page template. Can some body guide me how do I implement this we are using Sitecore 8.2 Update 2. Is there any out ...
2
votes
3answers
258 views

View Renderings at run-time

I need to load renderings and assign Datasource at run-time. We have two kind of renderings; Controller Rendering and View Rendering and am using this inbuilt function: @Html.Sitecore().Rendering ...
2
votes
1answer
139 views

NullReferenceError for Html.Sitecore().Rendering in Ajax Calls

I need to update page renderings based on search results using ajax call. I have written a method to get rendering collection based on filter and when I call Html.Sitecore().Rendering via loop in view ...
0
votes
0answers
91 views

Adding placeholder settings to presentation details of many items

I have to add a bunch of placeholder settings to a bunch of items. These items already have specific presentation details, so not using the standard values. I tried to add them to standard values, ...