Questions tagged [presentation]

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

Filter by
Sorted by
Tagged with
8
votes
2answers
473 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 ...
0
votes
1answer
398 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 ...
1
vote
2answers
54 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
2answers
44 views

Read site setting in rendering variant template

I want to read a site setting property (defined in Setting/Site grouping/'Sitename') in a SXA rendering variant template. Is this feasible in sitecore 9.2?
0
votes
0answers
15 views

JSS sitecore API verification throwing exception 403.0 - Sitecore.LayoutService module requires subscription license

I am trying to integrate my JSS app into Sitecore. I am following official JSS documentation but it throwing error on API verification HTTP Error 403.0 - Sitecore.LayoutService module requires ...
0
votes
0answers
25 views

Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Failed to start Node process

We are trying to get Sitecore Experience Editor working in Integrated mode but facing below error.Have ensured node is installed and is in the PATH environment variable. Additionally, was trying to ...
0
votes
2answers
39 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
1answer
36 views

SXA Missing Variants in a cloned rendering

i followed the documentation https://doc.sitecore.com/developers/sxa/93/sitecore-experience-accelerator/en/copy-and-customize-a-rendering.html and cloned a Page Content rendering. The script finished, ...
6
votes
0answers
299 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
0answers
37 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
35 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
2answers
258 views

Is it possible to get page content dynamically (Not HTML but field values which are displayed on the page)?

Is it possible to get the few renderings' (present on the page) contents dynamically, but the catch is like I don't want HTML instead I want the field values which are used to be displayed on the page....
0
votes
1answer
37 views

How to render datasource version after page load through programming in Sitecore SXA?

How can we render datasource version of the page through programming in Sitecore SXA ? Based on page version we want to render datasource item version on a page in experience editor.
0
votes
2answers
31 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
0answers
29 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
38 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 (...
0
votes
1answer
98 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, ...
0
votes
1answer
54 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 ...
0
votes
0answers
27 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 ...
0
votes
0answers
23 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 ...
0
votes
1answer
23 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 ...
0
votes
1answer
255 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 ...
1
vote
1answer
73 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-...
0
votes
0answers
48 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
11k 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
154 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
187 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
123 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. ...
0
votes
0answers
55 views

Getting “These is no current device.” error when accidentally removed layout folder

I'm currently going through the Sitecore 9 developer training. I misread the directions and I inadvertently deleted the \sitecore\layout\ folder. I went to the recycle bin and restore it and now I'm ...
1
vote
1answer
299 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
38 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 ...
8
votes
1answer
4k views

Sitecore media ashx not resizing the image (version 7.2)

We have 3 (near identical) Sitecore sites on a development server and 2 out of the 3 fail to resize the images using the inbuilt Sitecore query string parameters. Example URL: /~/media/...
22
votes
2answers
5k 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?
2
votes
2answers
42 views

Modifying renderings programatically - can update the Shared Layout and Final Layout together but can't seem to only update the Final Layout?

I'm working on a script to modify rendering parameters. I noticed that I seem to only be able to modify the Shared Layout and not the Final Layout. I can retrieve the Final Layout field and work based ...
1
vote
1answer
97 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 ...
4
votes
6answers
2k 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 ...
6
votes
3answers
907 views

Renderings xml seems to be suddenly broken

We encountered something strange with the renderings. We have a form with 4 steps. All the 4 steps have the same template, but they all have different renderings. For steps 1 to 3, the renderings are ...
0
votes
0answers
32 views

Fetch all the page rendering results programatically(static & dynamic) and pass it to new sitecore item

I am trying to fetch all the renderings of a global item programatically and want to pass those renderings to another item without adding anything in the presentation I have already tried ...
2
votes
1answer
539 views

What are differences between server side rendering and client side rendering in JSS?

Please illuminate main differences between server side rendering and client side rendering for JSS app? Is server side rendering only required for things which are tightly couple with Sitecore like ...
5
votes
1answer
482 views

Code to determine if a specific component is already on page

Issue: I want to add two accordion components to one page. The IDs are the same so both of the components will not work. My Proposed Solution: Using MVC, add code to the component that will check if ...
1
vote
0answers
142 views

Default enabling checkbox in rendering parameter isn't recognized by view

We have a view that uses rendering parameters, one of which sets a model property that determines whether a form should show inside the view. When I change the default value to 1 for that checkbox, ...
4
votes
2answers
759 views

How can I edit rendering parameters programatically?

I have a rendering that is used on pages all over my site, and I had to add a new field to the Rendering Parameters it uses. I now need to update this field on a huge number of renderings, but only on ...
3
votes
1answer
80 views

How to apply rendering to child items

Assume I have a menu with menu sections. The menu has a title, opening paragraph, and a list of menu sections. content title - Single line text paragraph - Rich text sections - Multilist ...
0
votes
1answer
147 views

Update Sitecore rendered links for a specific page

We are using Sitecore 9.0.2 & SXA 1.7.1 and we need to update all links to be absolute only in a specific page as by default all the links are relative for example this is the default link <a ...
1
vote
1answer
72 views

Duplicate icons on column splitter in partial rendering

Environemnt details: Sitecore 9.0.2 + SXA 1.7.1 What is happening: The options to modify the presentation are coming twice, as can be seen in the image below. On hovering over the icons, message is ...
1
vote
1answer
62 views

What can cause some renderings to not appear even after being published?

I have a Sitecore 9.1 dev instance. I added a non-cached View Rendering to the Default Layout (using Presentation Details), specifying "Content" as Placeholder. I reset IIS, cleared Sitecore cache, ...
-1
votes
1answer
86 views

Need to display multiple renderings in a Tab view

I am using Sitecore 9 and I need to display 5 controller renderings in a Tabbed view. I looked at the article: How to show three different Tabs rendering by using Sitecore in ASP.NET MVC But could ...
0
votes
1answer
140 views

Layout/presentation details and language fallback

I'm working on a multilingual Sitecore site. We currently have everything set up in English (/en); but are adding other cultures and languages (en-CA, es-MX, fr-CA, etc.). I've setup the languages to ...
2
votes
1answer
116 views

How to determine what placeholder a sublayout is in during getRenderingDatasource pipeline?

I have some components on my page that contain dynamic placeholders with other sublayouts placed inside them. Currently all of the datasource items get generated in the ./Local Components folder. My ...
2
votes
1answer
83 views

Render Name value list using rendering variant fields

Is there any way to render Name value list field using rendering variant fields?

1
2 3 4 5