Questions tagged [presentation]

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

Filter by
Sorted by
Tagged with
10
votes
2answers
4k 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. ...
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 ...
7
votes
2answers
217 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
1answer
979 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, ...
6
votes
1answer
532 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
3answers
1k 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. ...
3
votes
1answer
398 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 ...
6
votes
2answers
555 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
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 ...
11
votes
3answers
3k 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 ...
9
votes
1answer
384 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
750 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 ...
6
votes
1answer
702 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
1k 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 ...
4
votes
2answers
647 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 ...
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 ...
3
votes
2answers
564 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 ...
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 ...
7
votes
2answers
914 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
1answer
728 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
2answers
523 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 ...
5
votes
1answer
288 views

Force controller rendering in head of page to render after other renderings

I know that MVC and by definition Sitecore MVC renders components from top to bottom order, but is there any way to force (hack) a controller rendering (which is used in the head of the page) to be ...
3
votes
1answer
126 views

Changing renderings on a base template standard values and having all inheriting templates update

I have a base template called Base Page which has a few renderings on it in the standard values that all pages should have. I have a bunch of templates inheriting from Base Page that also have a ...
2
votes
1answer
38 views

While viewing rendering attached to an item in Core DB, Sitecore is throwing server error

I am trying to access the details of a rendering attached to an item in the Core database, but Sitecore is throwing server error. Please refer to the attached screenshot.
2
votes
2answers
105 views

Does Sitecore SXA supports personalization between rendering variants?

I have come across the situation where we want to implement personalization between the rendering variants for a given rendering. I know we can do the personalization between the renderings but I'm ...
2
votes
0answers
362 views

CreateCyclePreventer throwing NullReferenceException with final rendering details

I'm running into a weird issue with Sitecore 8.2 Update-6 where after I modify an item (with MVC controls) using the Sitecore Experience Editor I start getting NullReferenceExceptions when I view the ...
2
votes
2answers
1k views

How to add rendering at a position programmatically?

Following this article, I managed to achieve adding a rendering programmatically. But it will add the new rendering, always at the last position. Is it possible to add it at a particular index/...
1
vote
1answer
216 views

How to add renderings programmatically when another rendering is added

Which pipeline should I use when a new rendering is added in the presentation? I have a scenario to add renderings programmatically if a particular rendering is added in the item. I will write a ...
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 ?