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.

3
votes
0answers
38 views

Missing or presenting body-tag placeholder in SXA

I have got two sample websites, both just have created tenant and site with SXA 1.8. When I am creating a page and open it in EE, I am getting two different visual editing structures. 1. Three ...
2
votes
1answer
36 views

Changing renderings on a base template standard values and having all inheriting templates update

I have a base template called Base Page which has a few renderings on it in the standard values that all pages should have. I have a bunch of templates inheriting from Base Page that also have a ...
3
votes
1answer
60 views

Edit a Sitecore item in memory only

I'm using a custom item resolver to take a call to a wildcard item and use the URL to grab an item in a catalog of products (not Commerce). I've got the parser set up, but I've hit a conundrum. The ...
-1
votes
0answers
37 views

How can we reset or clear sitecore existing rendering parameter value using code?

How can we reset or clear sitecore existing rendering parameter value using code? example: var parametersFields = webutil.ParseUrlParameters(rendering.parameters) foreach (key in parametersFields) {...
1
vote
1answer
46 views

Sitecore keywords in the metadata

Lets say we have 4 renderings on the Page and each rendering has a data source attached to it which has a Keyword field that is being used for SEO purpose. Is it possible to get all the attached ...
1
vote
1answer
78 views

How to add renderings programmatically when another rendering is added

Which pipeline should I use when a new rendering is added in the presentation? I have a scenario to add renderings programmatically if a particular rendering is added in the item. I will write a ...
2
votes
2answers
46 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 ...
2
votes
2answers
80 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
17 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
2answers
72 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
22 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
70 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
33 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
139 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
50 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
114 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
75 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
38 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
178 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
94 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. ...
1
vote
1answer
360 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
152 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
123 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
110 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
202 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
184 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
51 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
24 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
2answers
347 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
145 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
126 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
114 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
478 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
87 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
215 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
376 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
2answers
440 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
270 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
184 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
138 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
244 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
240 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
301 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
55 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
220 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
76 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
464 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
219 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
180 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
113 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 ...