Questions tagged [presentation]

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

Filter by
Sorted by
Tagged with
2
votes
0answers
44 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 ...
0
votes
0answers
41 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
38 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
1answer
48 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 ...
1
vote
1answer
89 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
91 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
49 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
24 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 &...
0
votes
1answer
29 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
52 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 ...
0
votes
1answer
211 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 ...
1
vote
2answers
205 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
0answers
43 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
38 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
172 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
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
0answers
58 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 ...
1
vote
2answers
56 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
0answers
49 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 ...
0
votes
1answer
54 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.
1
vote
1answer
131 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
2answers
56 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 ...
1
vote
0answers
29 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
24 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
46 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
2answers
218 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
56 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, ...
1
vote
1answer
951 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
0answers
75 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 ...
0
votes
1answer
295 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
357 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 ...
6
votes
0answers
525 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 ...
1
vote
2answers
266 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
1answer
588 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 ...
0
votes
1answer
58 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 ...
2
votes
2answers
81 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 ...
0
votes
0answers
37 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 ...
4
votes
2answers
1k 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
154 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 ...
2
votes
1answer
166 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
106 views

Render Name value list using rendering variant fields

Is there any way to render Name value list field using rendering variant fields?
0
votes
1answer
77 views

Forcing correct item to render if it has same name with other item

Kindly correct me if I'm wrong posting it here. But I just wanted an opinion with this implementation I have: So, in Sitecore, we have multisite: -Site1 -Site2 -Site3 And we have a separated node ...
0
votes
1answer
822 views

RenderingContext is null

I want to access the rendering context in the getLookupSourceItems pipeline. public void Process(GetLookupSourceItemsArgs args) { // var rc = Sitecore.Mvc.Presentation.RenderingContext....
1
vote
1answer
66 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, ...
6
votes
1answer
144 views

Remove inline style from sxa image tag in sitecore

I created rendering variant and inserted field like that: and the image rendered as : <img src="/master-site/-/media/Project/ADGEs/Master-Site/Register-Icon.svg" alt="" style="margin: 0px 0px;...
5
votes
1answer
51 views

Can you add the same rendering to multiple SXA Cache Settings items

Is it supported to add the same rendering to two (or more) different cache settings items? Currently, there is no warning if you do so, but I'm unsure if this is a valid thing to do or not?
4
votes
1answer
278 views

EXM Experience Editing - missing create new content

I've created a new rendering and have set the Datasource Location and Datasource Template. However when I add it to a placeholder inside the EXM Experience Editor I only see the option to select ...
2
votes
1answer
117 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
216 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, ...
0
votes
0answers
49 views

How did I clear the final layout accidentally

Suddenly the Final layout was missing and it did not even fallback to the shared layout also. No body from our side did not change the layouts intentionally. How this could have happened? Any guesses?...

1
2 3 4 5 6