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

Questions tagged [presentation]

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

2
votes
2answers
35 views

Fixing incorrect references in _Final Renderings (and maybe _Renderings too)

Background: Sometimes we get invalid pointers to renderings in the diffs stored in the rendering fields in Sitecore. (_Final Renderings in our case but maybe it appears in in the shared _Renderings ...
0
votes
0answers
22 views

Sitecore 9 xBlog installation error

While installing xBlog package in Sitecore 9, got error in AddFieldbyFieldName config section. Attached the screenshot. Did anyone experienced and resolved this issue?
0
votes
1answer
19 views

SXA - Changing Page Template causes NullReferenceException

I am working in a multi-site scenario. For a specific country version I revamped a page by creating a new template, inheriting existing one and adding few additional fields. page-template-1 (...
2
votes
2answers
48 views

Opengraph meta tags not rendering

Using Sitecore 9 and SXA 1.7 We are trying to use Opengraph meta tags by adding custom metadata in this section for an item however, it never renders on the page,and never shows up in the html. We ...
0
votes
0answers
16 views

Read an Item presentation List and Respective datasource [duplicate]

I would like to read the items presentation details(list of Renderings) and its respective data source .Please guide me
5
votes
1answer
30 views

Getting and setting the order of renderings/sublayouts on a page

I have written a PowerShell script that replaces sublayouts with renderings across all pages in a Sitecore site. Everything is working well except for the order of the renderings. The order always ...
1
vote
1answer
21 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
60 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
29 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
109 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
32 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
85 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
65 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
35 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
138 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
82 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
233 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
126 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
95 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
89 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
146 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
160 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
45 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
233 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
133 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
84 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
91 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
384 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
73 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
164 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
304 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
363 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
231 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
144 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
118 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
212 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
214 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
246 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
194 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
67 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
368 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
190 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
167 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
104 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
108 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
115 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 ...
7
votes
0answers
82 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
271 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). ...