Questions tagged [presentation]

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

Filter by
Sorted by
Tagged with
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?
19
votes
3answers
3k views

Possible to copy the presentation details of one item to another?

From the content editor, is it possible to copy the presentation details, renderings, layout, etc.. from Item A and paste onto Item B? I'd like to avoid creating a duplicate of A and then resetting ...
16
votes
2answers
617 views

How do I clear the HTML cache for a specific user?

We have an action that updates some user profile information that is displayed in components that are cached with a vary by user setting. Is there a way to clear the cache for only that one user?
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?
13
votes
1answer
663 views

Publishing restrictions for components in page

I have a page that is completely component based. All images, html, etc are individual components with datasources in a grid system. The datasources are in a folder under the page called pagedata or ...
12
votes
2answers
1k views

Force shared layout in experience editor

I know there's a button in experience editor to decide whether to use the shared layout or the final layout when adding renderings (and the default is final layout). Is there a setting that forces ...
11
votes
3answers
4k views

Which Sitecore fields can be rendered using a FieldRenderer

From my knowledge, there is a set of fields that can be rendered out using a FieldRenderer like text, numbers, dates, etc. Additonally, there are also fields that cannot be rendered out, such as ...
11
votes
1answer
2k views

SXA Page Design vs Page Standard Values vs Page Branch Template

Sitecore historically had two options for building reusable page design: Page Standard Values Branch Template Both these options allow to build composition of visual components and later build pages ...
10
votes
3answers
2k views

Is there any alternative to @Html.RenderAction in Sitecore?

I want to load partial view using @Html.RenderAction("AccountNav", "Navigation", new { Area = "areassomething" }) but it throws an error. Is there any alternative? Is the semantic correct? I ...
10
votes
2answers
2k views

Relative rendering DataSource Locations

How do I define DataSource Location for rendering parameters, relative to the context item? When defining a DataSource Location for rendering parameters (Droplink or TreeList etc), using a relative ...
10
votes
2answers
6k views

Is it possible to get page rendering result programmatically ?

I need to get all HTML page content that sitecore generate for an page item. But I need to do it programmatically just for some special tests. I can of course just use URL but it is not good for me. ...
10
votes
6answers
5k views

Dynamic data source of the view rendering is not working in sitecore 8.2

I use sitecore 8.2 and I can't understand the purpose of the "Data source" field on the "View rendering" item. It seems that datasource works only when I statically specify it inside the cshtml file: ...
10
votes
2answers
438 views

Advanced rendering data source criterias

Has anyone got any ideas on how to customise the “choose data source dialog” / pipelines; so that only certain items (by tag or otherwise) are available as the selectable data source?
10
votes
1answer
264 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 ...
9
votes
3answers
2k views

Error in Experience Editor when Saving Rendering with Image Field Rendering Parameter

I have a rendering that has a custom rendering parameters template. That rendering parameters template contains an image field. When I add the component to the page, add an image to the field, and ...
9
votes
1answer
495 views

What is the recommended pattern for dynamic paragraph systems in Sitecore?

It's not at all uncommon to have an article page designed that is intended to be dynamically formed from a number of components: <rich text> <left image with additional comment> <rich ...
9
votes
1answer
954 views

Sitecore Page Editor Issues with Move and Add Components

I have a page with "body" placeholder in which I have kept 10 controller renderings on a page. When I'm trying to order the component using Page editor or Content editor, the sort order randomly ...
9
votes
3answers
681 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 ...
8
votes
2answers
2k views

Is it possible to use conditional renderings with Sitecore MVC

I have problems using conditional renderings with MVC (on Sitecore 8.0 rev. 150121) I've created a condition and assigned it to the controller rendering but this condition never gets called. From ...
8
votes
1answer
5k 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/...
8
votes
1answer
661 views

Multilist With Search in Rendering Parameters is empty

It looks like Multilist With Search does not work in rendering parameters. No items loaded in list even for very simple query. Is it intentional behavior or there is a way to configure it correctly? ...
8
votes
2answers
158 views

Options for Planning an Effective Presentation Details Strategy

I am very familiar with Presentation Details and inheritance, as well as the Sitecore 8 documentation on Versioned Layouts, but I feel like Presentation Details are all too often one of the most ...
8
votes
1answer
2k views

How can you get a unique ID for a rendering on a specific Sitecore item?

I need to programmatically update all of the instances of a particular rendering attached to a Sitecore item. This is the code I first tried and failed to use: foreach (RenderingReference ...
8
votes
2answers
1k views

Placeholder settings on sub-renderings

This is something that's been bugging me and I was curious to others' solutions. Let's say you have a template that you've done standard values on for the presentation...you pick a layout, put ...
8
votes
1answer
1k views

Updating Presentation details and Template Inheritance (Rendering Inheritance)

I am using the Sitecore 8.2 I have a template T1 which has rendering R1 set on its Standard Values (set a long time ago, maybe at the age of Sitecore 7 or earlier). There is a set of templates T2, ...
8
votes
1answer
544 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 ...
7
votes
2answers
693 views

"Replace Rendering" in Experience Editor disabled

We have renderings which have compatible renderings configured. The button in the Experience Editor (Sitecore 8.1 Update-3) shows up on our local development environments and renderings can be ...
7
votes
1answer
905 views

Item not found when saving page in Experience Editor

I have a strange situation where I get a 'Item not found' on postback in Experience Editor when I edit an page. The culprit is a controller rendering which has a line of code in to get the current ...
7
votes
3answers
419 views

Yellow screen (YSOD) and unhelpful errors when trying to edit the renderings/presentation details on a page

I have a 8.0 site that just started having some problems whenever I try to edit the Renderings (both final and shared). I'm getting a yellow screen displaying as soon as I hit "Edit", as seen here: ...
7
votes
2answers
1k views

Template standard values final layout

Which purposes can be reached by using final layout in template standard values? What are advantages and disadvantages to use final layout in template standard values?
7
votes
2answers
272 views

Error Related to GetEnd() Method in a Custom Rendering Wrapper - Sitecore 8.2

I have been going through the book Professional Sitecore 8 Development by Phil Wicklund and Jason Wilkerson. The book has been very helpful to me but I've got an issue I haven't been able to figure ...
7
votes
2answers
487 views

Adjust component parameters based on placeholder

I'm trying to add Parameters to a rendering based on the placeholder it's been inserted into. I've been trying to handle this using rules (after reading through this blog post): I created a new ...
6
votes
1answer
3k views

What's the Placeholder field used for in a Rendering?

Within View Renderings and Controller Renderings (at least) there is a shared field within the Data section called Placeholder. What exactly is that field used for?
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; ...
6
votes
3answers
2k views

Safely replacing all references to an Rendering with another

I have a controller rendering which is referenced by the standard values on most of my page templates and I need to substitute it everywhere it is used to use a different controller rendering instead. ...
6
votes
1answer
2k views

Knowing which rendering has a broken link

When looking at the broken links report or broken links in the bumper, sometimes it will reference a broken link in the Final Renderings. But no info is available to know which rendering is doing it. ...
6
votes
1answer
895 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'...
6
votes
2answers
1k views

Change the Order that Component Properties Display In

I have created a new rendering parameter to be used with a specific page layout. Everything is sync'd up but when I go to edit the Control Properties, my new section shows up below the "General" ...
6
votes
1answer
2k views

Best way to add rendering in base template and inherit

We are 80% from the completion of the project. And noticed that we need to create a couple of renderings that must exist on all pages. I thought the best place to do this would be presentation ...
6
votes
2answers
731 views

Is it possible to limit Renderings so they can only be placed once on a page?

I'm using Sitecore 8.1 rev. 151207 - And I have that rendering which only should be placed once on a page. Is it possible to limit that in terms of letting the user not add another one of the same ...
6
votes
1answer
935 views

Is there a way to supress rendering width and height attribs using Fortis Image.Render?

Using Fortis Image.Render, is there a parameter to suppress rendering the Width and Height attributes? Example of the image: @Model.ImageField.Render(new { @class = "my-class-name" })
6
votes
1answer
323 views

Controlling Layout / Device Layout by culture

I heard it is possible to control your device layout by which culture you are in. I can not find any documentation or examples on this. I see that you can choose a device layout by QueryString or ...
6
votes
3answers
1k 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 ...
6
votes
1answer
162 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;...
6
votes
2answers
372 views

Remove access to Shared presentation?

I am trying to remove access to shared presentation for a particular role. I have denied read on this item: /sitecore/content/Applications/WebEdit/Ribbons/Chunks/Layout Modes/Shared Layout. This ...
6
votes
2answers
2k views

How do I display a child's presentation details? (Nested presentation details)

I have a Sitecore item that has presentation details ("MainPage"). Within those details is a component that also has presentation details ("PageSlide"). I cannot get Sitecore to display the ...
6
votes
1answer
758 views

Warning: A rendering was not used on the page. The placeholder "xxxxxx" was not found

There is a Desktop Layout (Desktop.aspx) with several controls (Figure 1 and Figure 3). One of the controls called "Two Column Big Left" (TwoColumnBigLeft.ascx) has three placeholders (Inner Content ...
6
votes
1answer
626 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 ...
6
votes
0answers
180 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 ...
6
votes
0answers
410 views

Component disappears when another component is added and the page was not saved

We're having an issue where a user adds a component to a page, and then adds another component to the first component. But when they add the second component the page reloads and since the content ...

1
2 3 4 5 6