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.

0
votes
0answers
27 views

SXA style option for custom rendering [duplicate]

What I have done: I have a new rendering by cloning. I created a component on the basis of a new template created by cloning. On a new partial rendering, I added the newly created rendering and ...
0
votes
1answer
18 views

SXA Issue displaying fields with new rendering

Environment details: Sitecore 9.0.2 + SXA 1.7.1 What I have done till now: I followed the steps provided at https://doc.sitecore.com/developers/sxa/17/sitecore-experience-accelerator/en/copy-and-...
1
vote
1answer
19 views

Equals sign (=) added after valueless query string parameters

When rendering an external link from a General Link field using the Glass Mapper BeginRenderLink helper, any query string parameters without values are getting an equals sign (=) added after them. An ...
1
vote
1answer
40 views

Dynamically Generated Rendering not displaying in experience editor in SXA Multi Tenant Solution [closed]

When working with with SXA inside of a multi-tenant solution, we are building a component to generate an HTML sitemap. We have implemented a recursive function to generate the html sitemap ...
1
vote
1answer
31 views

Placeholder setting for partial designs

I was creating a page similar to the image below with SXA 1.7.1 in Sitecore 9.0.2 In my situation, I have the 'translation section', 'Videos' and 'The Weeknd' to be reusable. Search results can be ...
1
vote
1answer
30 views

Sitecore broken links reports - how to find wrong component

I have a message about a broken link at final layout at some page item on my Sitecore 8.2 instance. I ran a Scan for broken link report and find a record about this page item. The report shows an ...
0
votes
1answer
37 views

Checking for a checkbox rendering parameter value in view

I have a view that works fine to display rendering parameters for a title and body of a widget, however, I've added a checkbox field to the rendering items for that template and when I try to use it ...
0
votes
1answer
37 views

Missing Files When Duplicating Rendering

I'm able to create modules and duplicate renderings without any problems when on my local Sitecore 9.1 / SXA 1.8 build, but whenever I am facing issues when trying to do the same process when using ...
2
votes
0answers
24 views

Few of the URLs working by placing (.) dot in the end of URL in Sitecore based website

A few of our website URLs are displaying blank pages. However when we append . at the end of the URL, it renders the page correctly. We're not sure how/why a majority of pages are working fine but a ...
0
votes
1answer
37 views

Sublayouts always rendering even when Visible=false, causing performance issues

I have a page template that dynamically renders all the datasource items that are in its Components folder. The way the page works is that there are no components in the placeholder settings on the ...
1
vote
2answers
65 views

I need to reorder renderings in Presentation Details on all pages

Working on a client's site and they have thousands of items with layout. In the layout of every page we have two renderings - Top Navigation, then Pinned Navigation. We made an architectural mistake ...
1
vote
1answer
43 views

Multiple “Add here” buttons due to multiple tabs

In one specific layout, I have multiple tabs and each tab shows different content/placeholders. When I'm in Experience Editor mode, Sitecore shows all the "Add here" buttons even for the placeholders ...
-1
votes
1answer
39 views

Razor-Inserted Value rendering as Type String instead of Expected Value

We're encountering a strange issue from one environment to the other that we can't seem to get to the bottom of. We're using Azure for hosting as well. On all environments, we have the following code:...
5
votes
1answer
57 views

Add Placeholder To Presentation Details Using Sitecore Powershell

I'm attempting to use Sitecore Powershell Extensions to automate Step 2 of the following upgrade guide for a Sitecore accelerator known as SCORE: https://brainjocks.atlassian.net/wiki/spaces/SDD/...
3
votes
1answer
56 views

Count of selected items in a MultiList

I need to view the number of selected items in a MultiList field using out of the box SXA (1.7) components(i.e. no custom coding). I tried doing this with a rendering variant NVelocity template using ...
4
votes
2answers
68 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 ...
3
votes
1answer
60 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 ...
4
votes
1answer
72 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
vote
1answer
84 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
102 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
60 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
119 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 ...
5
votes
2answers
139 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
24 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
77 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
45 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
174 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
73 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
146 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
81 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
43 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 ...
6
votes
1answer
232 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
132 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
503 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
188 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
162 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
129 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
253 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
203 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
62 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
476 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
161 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
168 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
153 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
559 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
97 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
256 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
490 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
500 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 ...