We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [presentation]

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

Filter by
Sorted by
Tagged with
6
votes
3answers
266 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: ...
2
votes
1answer
563 views

Is it possible to detect if a component was just added to the page in the Experience Editor?

I would like to show some message in my component in case this component was just added in the Experience Editor, but the item is not saved yet. Is there any way to do it?
0
votes
2answers
2k views

Get amount of components on final layout programmatically

I need to know how many components final layout has for each language programmatically. Is it any Sitecore API for it ?
12
votes
2answers
762 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 ...
4
votes
3answers
894 views

Different rendering parameters by language

I have a component rendering, which is added to the shared layout of the standard value of a page template. This page template has multiple language versions to have different values per language. Is ...
2
votes
1answer
193 views

Habitat - Renderings vs Sublayouts

All of the common CSHTML views in Habitat are in a folder called Sublayouts. https://github.com/Sitecore/Habitat/tree/master/src/Project/Common/code/Views/Common/Sublayouts However, I'd usually call ...
1
vote
1answer
444 views

How to trigger custom code when rendering is removed?

I would like to trigger some code when a rendering is removed - actually gone, so not before the change is saved (you never know if an editor changes it's mind after removal and doesn't save). I ...
3
votes
2answers
558 views

Change datasource in final layout through API

I am trying to add some code (after an item is created - but that is not relevant) that manipulates the layout fields. To be precise, I want to change the datasource of some renderings (based on a few ...
5
votes
1answer
2k 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?
0
votes
2answers
2k views

Set relative datasource for rendering

I have a template configured for two devices. Each device has its own type of rendering, but they share the same data source item. Each instance of the page template will have the following structure ...
6
votes
2answers
546 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 ...
1
vote
0answers
332 views

Remove Child Renderings From Layout

I'm trying to determine the feasibility and effort for a client request. When a rendering is removed from a layout via the presentation details, they want all child renderings to also be removed to ...
4
votes
2answers
874 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-...
0
votes
1answer
357 views

Disable editing on rendering in pipeline

I created a composite components control for Web Forms. I accomplished it by overriding the RenderLayout pipeline processor Sitecore.Pipelines.RenderLayout.InsertRenderings. The issue I have is that I ...
1
vote
1answer
319 views

Can I access component/placeholder hierarchy from a `getPlaceholderRenderings` processor?

Our solution is using dynamic placeholders. We have a requirement to restrict what renderings can be inserted in the page content (under the content placeholder) and in the sidebar (placeholder right-...
0
votes
2answers
882 views

The type or namespace name of solution could not be found [closed]

I have a fresh installation of Sitecore 8.2 MVC 4.6.1. There is a custom item called Home and it has a layout. When previewing this item, it gives this compilation error. Why is it reading from a ...
2
votes
2answers
882 views

Place to edit renderings popup window. Make larger

I have implemented tabbed renderings in a client site, but the window is too small causing the user to scroll to see all the tabs. I have looked in the SelectRendering.xml file, but that seems to be ...
2
votes
1answer
343 views

How to name dynamic placeholders if they are based on bootstrap column widths

I'm working on a Sitecore website where author should be able to add components based on rows and columns. (Just like in Habitat). If the markup was simple, like this: <div class="row"> &...
0
votes
2answers
262 views

Sitecore NVelocity implementation [closed]

Looking into some existing code that uses the Sitecore NVelocity implementation. Anyone with some experience on this? string Header = VelocityHelper.Evaluate(VContext, SpecificEnum.Header, "...
3
votes
3answers
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 ...
6
votes
2answers
1k 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 ...
4
votes
2answers
143 views

When are Sitecore Pages created?

Our Google Search Appliance is going crazy, reindexing each of our pages several times a day. The Google support specialist asked us if our pages were being generated dynamically or not. I know that ...
5
votes
2answers
6k views

How to render an MVC rendering in code

I have two renderings. Let's call them Form Block and Complete Form. Complete Form has a placeholder on it that can contain Form Blocks. Form Blocks have a placeholder that can contain other ...
4
votes
1answer
392 views

Dynamic vs. Static Renderings in Habitat project

In Habitat sample project meta renderings and few similar sort of renderings have been used as dynamic rendering. Shouldn't such renderings be used as static rendering in layout? Is there any specific ...
9
votes
6answers
4k 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: ...
7
votes
2answers
213 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 ...
5
votes
1answer
2k views

Inheritance between templates

My question is the same as previously asked here with no answer. We have a bunch of page templates with same header/footer, etc. The idea was to create a base template which would contain all of the ...
6
votes
1answer
601 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 ...
2
votes
2answers
486 views

Shared layout has different values in different languages

This is the behaviour in sitecore8.2 As shared Layout is a shared field i thought the value of shared layout will be same for all item languages and versions. But i found its not if we set different ...
7
votes
2answers
907 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?
3
votes
3answers
136 views

Schedule Items to display in Rendering Datasource

So I have a Rendering, it takes a data source, but there is a requirement to schedule a specific data source item to show up for that rendering between a given time frame. Is that possible within ...
3
votes
2answers
2k views

Is there a way to identify current layout details with renderings?

I got a scenario where I have different layouts Layout1, Layout2, so on...I have a renderings which is shared among this layouts. Layout1- Rendering -R1 Layout2-Rendering-R1 and so. Now I have ...
9
votes
1answer
380 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 ...
4
votes
2answers
633 views

Rich Text Editor options [closed]

The out of the box Telerik RTE in Sitecore has been around a long time and served us well. But there are many options out there like Redactor. Has anyone implemented another more modern RTE in ...
1
vote
1answer
1k views

Inline editing of rendering parameters in Experience Editor

I'm investigating multiple solutions for being able to dynamically build a page using multiple blocks of HTML, and other non-structural content. I'm trying to optimise the editing experience and ...
3
votes
1answer
393 views

Create datasource when a rendering is added to the page

I have seen in SXA that when I add a rendering to the page, it automatically creates a datasource item for the rendering when it adds it to the page. This helps the user not have to create a ...
3
votes
4answers
1k views

Is it possible to show the website for a given device?

We have implemented a custom device tablet in Sitecore, and to test it we wish to render the website as if that device was in use. How do we accomplish that? Using Sitecore 8.1
3
votes
2answers
629 views

How can I migrate all controls on all pages to a certain placeholder?

The layout of our website has been completely overhauled. The old placeholders didn't make sense anymore, so they aren't used in the new layouts. As a result, most content pages are now empty. All ...
8
votes
1answer
545 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? ...
5
votes
3answers
671 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 diffirent renderings. For step 1 to 3 the renderings are ...
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 ...
5
votes
2answers
1k views

Add Rendering parameters to placeholder

I know that this might sound strange but, instead of adding rendering parameters to the different controls/modules on the page, I want to be able to add rendering parameters to the placeholder itself. ...
10
votes
1answer
1k 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 ...
7
votes
2answers
380 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 ...
3
votes
1answer
2k views

Benefits of static vs dynamic binding of renderings [closed]

In Sitecore's documentation you encounter terms such as "static binding" and "dynamic binding" of presentation components such as renderings. What are the differences between static- and dynamic ...
14
votes
1answer
9k 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?
6
votes
0answers
331 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 ...
10
votes
2answers
358 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?
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 ...
19
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?