Questions tagged [presentation]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
16 views

List of Personalization Rules Conditions and What it Triggers

Is there a way in Sitecore to get a list personalization with it rules conditions and what triggers it? Prefer to use PowerShell if it can be done that way or an OOB method. Thanks.
0
votes
0answers
16 views

Rendering variant does not render data if template is changed

Scenario: I have a template that has shared fields, now I got the requirement to provide multilingual support in few components. I can't change the shared field because data should be shared in other ...
0
votes
1answer
34 views

Created WebControl not working

I've created WebControl by extending Sitecore.Web.UI.HtmlControls.Control class and implemented DoRender method. Adding either in another control or by adding to xml file don't call DoRender method at ...
0
votes
1answer
35 views

How do I force the Sitecore FieldRenderer or Glass.Mapper, when rendering rich text fields, to always render absolute urls for my API?

I have an API in Sitecore that takes content from Sitecore and provides it to an external non-Sitecore site. While retrieving content, the API renders a rich text field using a glass mapper. This rich ...
1
vote
0answers
10 views

Select A Rendering Not Recognizing Allowed Controls From Placeholder after App Pool Recycle

I'm experiencing an issue in Sitecore 9.0.2, Lucene index, and 10.2, Solr index, where some, but not all, of our placeholders in Experience Editor are not recognizing the renderings inside the Allowed ...
0
votes
1answer
76 views

Shared/Final Layout switch/toggle button not available or visible

I'm using Sitecore 9.2. We have an issue where the shared/final layout button is available for some roles and not others in Experience Editor's Presentation Ribbon. When I access a page with my admin ...
9
votes
3answers
696 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 ...
10
votes
1answer
267 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 ...
0
votes
0answers
27 views

Powershell script to update the template but to retain all renderings and fields

I need to change the template of multiple items in a folder but need to retain the field values and rendering and layout details. I was able to change the template and retain the field values. But how ...
0
votes
2answers
88 views

Updated field in rendering variant not working

The requirement was to show the last updated date and time of the item in the page. So I tried to create a rendering variant of page content with field as Updated (which is there for every item ...
0
votes
1answer
31 views

Specify default rendering for placeholder in partial design

We have a partial design with an empty placeholder that is being pre-filled with one of its allowed renderings upon page creation. It is not clear where exactly it is being specified for this ...
1
vote
3answers
404 views

Programmatically set Sitecore.Context

I'm trying to build a custom admin utility page which will add renderings to a page. The action happens in an Ajax call and so the Sitecore.Context is unavailable. I do have the pageItem though. ...
0
votes
1answer
693 views

Bind JSON data in the rendering variants using custom SXA component

Recently I was building a custom SXA component and I have made that by cloning the Default Event List Component given by SXA . I have to get the data in json format from a controller and bind it with ...
6
votes
1answer
652 views

SXA Dynamic Placeholders not working when creating multiple placeholders inside of a single rendering

I am currently working in Sitecore 9.1.1 with SXA 1.9. I am trying to build out a Rendering Variant that points to a datasource item with sub-items. These sub-items are child items to the datasource ...
0
votes
2answers
64 views

Is it possible to extract a list of all Custom Controls

We have an inherited Sitecore 8.2 instance. I am very new to Sitecore so I apologize if my terminology is wrong! While our team has completed some custom development since taking over the site, I now ...
1
vote
0answers
116 views

Component with workflow loads only once

In our project we have a home page and test home page. Both the pages have a component with two different data sources (based on same template- but content differs). Now the problem is when we make ...
5
votes
6answers
3k views

Detect if page is on experience editor Sitecore 9 via Javascript?

Ok, i see many examples of this online but none seems to work, maybe those examples are for older Sitecore. I simply want to detect if the user is on regular site view or if they are on experience ...
2
votes
0answers
48 views

Final layout gets automatically populated with extra renderings

I'm using Sitecore 9.1.1. I ran into an issue related to the layout of a page. I have a template which I added a snippet on its standard values' presentation details in the shared layout, this snippet ...
3
votes
4answers
2k views

How to check the preview mode

I have a page whose menu bar loads fine when previewed by clicking Presentation > Preview. When previewed by clicking Publish > Preview, the site's menu bar is overlapped by Sitecore menu. To ...
4
votes
3answers
1k views

System XML exception for rendering after upgrade

We recently upgraded 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 ...
0
votes
1answer
41 views

Sitecore not obtaining an item's fields

My sitecore Article Component is not picking up my authors details. I have an Article component that has the path to my article html page, /Views/Basic Components/Article.cshtml. In my author page ...
0
votes
0answers
45 views

How to import renderings/components from solution folder to sitecore

I copied over the views and controllers from the solution folder to my local project, built and deployed. sitecore got updated with new files. I am wondering how to import the renderings/components ...
0
votes
1answer
107 views

Passing Custom Model into View Rendering

I am calling a controller action from a form post, fetching all the data inside the controller and passing the model inside View Rendering, but Im getting null values inside the View. I have used this ...
2
votes
2answers
290 views

Loading of new page blocked by api call

I have a website with two pages (A and B). Both have some content which is loaded via renderings. A has a button which opens B in a new tab. A also has some frontend code which calls one of my APIs, ...
1
vote
1answer
159 views

Why aren't SXA rendering variants available for the default "Page Structure" renderings?

For nearly all of the default renderings in SXA, there's an associated rendering variant. And if I wanted to add a variant, in the Content Editor, I can go to presentation > rendering variant, and ...
0
votes
2answers
180 views

How to add a component inside accordion

I have to add a checklist filter component inside SXA accordion component .Can it be achieved in SXA?
0
votes
1answer
65 views

How to add an SXA rendering variant to the toolbox?

I have a custom rendering variant under site "A" (under Presentation > Rendering Variants > Navigation) and I want to add that to the Experience Editor's toolbox so that it's available ...
0
votes
0answers
27 views

Can I add a script that is dynamically changed in a Sitecore layout page?

My company is still using Sitecore v8.2 and for a while we are not upgrading it. Is there a way to add a script that has been created Front End side using Webpack and that has the following structure &...
23
votes
2answers
6k views

How do I implement Accelerated Mobile Pages (AMP) with Sitecore?

This is just a general question. Has anyone implemented AMP with Sitecore before? Is it possible, how difficult and could you point me in the direction of documentation?
6
votes
5answers
1k views

How can I programmatically list all personalization in my page?

I am trying to get all personalization set in a given page from a RenderingController context. Any idea? public ActionResult GetPersonalizationRule() { var contextItem = Sitecore.Context.Item; ...
4
votes
2answers
1k views

Custom rendering datasource syntax without breaking experience editor

I'd like to be able to use a custom datasource syntax for renderings and sublayouts. In particular I'd like to be able to handle custom prefixes for various different usages. The main one being site-...
1
vote
1answer
388 views

How to programmatically get or set only Shared Or Final Layout renderings

The following code will remove rendering from items. It works fine but the changes happen only in the Shared Layout. Is there a way to read/update renderings in only a certain layout type - Shared or ...
0
votes
2answers
266 views

Where are the presentation details stored in an item

I have added a layout and some renderings to a page item, in the Shared Layout. The raw value of the Renderings field shows this: <?xml version="1.0" encoding="UTF-8"?> <r ...
0
votes
0answers
74 views

Can we create multiple ActionResults in Sitecore SXA custom controller rendering?

Per Sitecore SXA documentation, in SXA custom controller, we have to override the GetModel() method and we call repository to get the model. I would like to create multiple Action Results in Sitecore ...
0
votes
0answers
37 views

Site breaks when page contains an unpublishable item

We have just upgraded from 8.2 to 9.3 and some behaviour has changed. In 8.2, when I make an item unpublishable and publish to cm/cd, the page loads fine without that item. In 9.3, the page doesn't ...
0
votes
0answers
72 views

What does RenderingContext.Current.Rendering.Item.HasLanguageVersion() do?

I have some logic server side to check if the Item has a language version and based on that the result, the app would choose whether or not to show a particular view. I published the item in es-PA ...
1
vote
2answers
63 views

Prevent Sitecore Save on Editing.EndEdit()

I'm trying to make a a function that whenever user saves in the Experience Editor, it copies the rendering of current language version to other 2 language versions. For example, if I'm in Language A (...
1
vote
1answer
197 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 ...
1
vote
0answers
37 views

How can a previously removed component be fully restored from standard values?

When a component coming from a template has been removed from a page item, it can be restored by resetting layouts from standard values. However, if changes are made to the component at the template ...
1
vote
0answers
27 views

Why are page components getting bumped to bottom of components list after template is deployed?

After a particular template is deployed during a release, page level components are getting bumped to the bottom of the components list on page final layout. We've pulled that template from getting ...
1
vote
1answer
64 views

Editors cannot edit certain aspects of presentation details, such as a component's datasource or placeholder

I am working on an issue facing some Sitecore editors. These editors can edit items normally once it is locked to them but cannot edit certain aspects of presentation details of those items. If the ...
1
vote
1answer
1k views

Understanding Shared vs. Final layout, Experience Editor and Publishing

I understand that theoretically the Final layout is the versioned one of the layouts, what I don't understand is the behavior I get with making changes in the Experience Editor and how it seems to ...
2
votes
1answer
143 views

Get-RenderingParameter is not recognized as a name of a cmdlet

I'm writing a script to exchange a rendering component with a new rendering component, but it should keep all of the same rendering parameters. I followed the documentation to use Get-...
1
vote
0answers
88 views

Order of controls in layout changed when site was updated from Sitecore 7.5 to 9.3

After upgrading our Sitecore site from 7.5 to 9.3 we discovered that the order of controls in layouts for some items has changed. Therefore the actual layout of the pages also changed. There seems to ...
15
votes
1answer
13k views

What is the difference between a Layout, Sublayout, and Rendering?

In Sitecore, under /sitecore/layouts, I see the following: Layouts Sublayouts Renderings What are these, and what makes them different? Are there any other types of layouts?
0
votes
1answer
395 views

Unable to preview page - Permission to the requested document was denied

This is a fresh 9.3 instance. I'm unable to preview any page. On clicking preview, it opens a page which has this error: I'm logged in as Admin. It did not happen with other instances like 8.2. Are ...
2
votes
2answers
445 views

Page designs not visible in in main placeholder

I am using Sitecore 9.2 with SXA 1.9. My experience with using the out of the box sxa layout is that three placeholders are present: header, main, and footer. About a week ago we began to see a ...
1
vote
2answers
343 views

Can't switch between Final Layout and Shared Layout

I'm encountering a problem where I can't switch between Final Layout and Shared Layout in the Experience Editor. The button is not grayed out though. It just doesn't make the switch when selected. ...
1
vote
1answer
497 views

How can I copy personalization rules to a rendering in Sitecore Powershell?

I'm copying a rendering from one item to another using Sitecore Powershell Extensions. All is working well, except that the personalization rules for the rendering aren't copied over. I can get/set ...
0
votes
1answer
59 views

Sitecore 8.2 versioning not working in final layout

I have a Sitecore 8.2 build which is behaving quite opposite way to what sitecore defines versioning to be. When I make a second version for an item and make changes to the final layout, it applies ...

1
2 3 4 5 6