Questions tagged [presentation]

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

Filter by
Sorted by
Tagged with
5
votes
1answer
458 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 ...
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. ...
1
vote
1answer
351 views

Rendering Parameters not honoring sections

Version Sitecore 8.1 Update 3 Issue I have created rendering templates that are composed of several base templates. Its actually a single template for each column in this case. ...
2
votes
1answer
250 views

Edit rendering parameter data from a rendering toolbar

I would like to update some data on my rendering parameter template from the rendering toolbar. Like when I click a custom experience button, I could set my vertical alignment field, on the rendering'...
13
votes
1answer
488 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 ...
2
votes
2answers
644 views

Cannot setup content for same control multiple times in a page created using a template in sitecore 7.5

I'm trying to use the same control (MVC ControllerRendering) multiple times in a page type template, similar to www.launchsitecore.net/.../binding-content-and-presentation (please check Fixed Toolbar ...
1
vote
1answer
742 views

Component Definition item

What is the core usage of a Component Definition item? Is it used to store the rendering parameters of the component? Or does it allow the component to be added to a placeholder? Or Both?
4
votes
1answer
606 views

Difference between “Component definition item” and “Components or Rendering”?

What is the difference between "Component definition item" and "Components or Rendering" in Sitecore?
0
votes
1answer
240 views

VisitorIdentification is empty

I want to get the VisitorIdentification html string in my C# code. So I do the following: var viewContext = Sitecore.Mvc.Common.ContextService.Get().GetCurrent<ViewContext>(); var htmlHelper = ...
2
votes
1answer
1k views

Getting generic link's friendly url from rendering parameters

I have a rendering parameter template with a generic link field, now I want to get the friendly url (No glass mapper in this project), is there a way to convert rendering parameters to fields based on ...
6
votes
2answers
278 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 ...
3
votes
1answer
341 views

Access to both Experience Profile and Presentation Details

I have a user that needs access to both Experience Profile and Presentation Details. We found a Sitecore KB reference (https://kb.sitecore.net/articles/820320) that stated if a user had the Author or ...
5
votes
2answers
880 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" ...
0
votes
0answers
171 views

Component/Module placement issue in experience editor in Sitecore 8.1

We are facing very strange issue. On a page we have one Banner(B) and two Container module/component C1,C2 Here is sequence on page: B C1 C2 In Experience Editor when I add one Container module ...
6
votes
3answers
316 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
654 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
910 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
1k 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
202 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
475 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
690 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
620 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
359 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
1k 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-...
1
vote
1answer
394 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
347 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
1k 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 ...
3
votes
2answers
1k 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
360 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
305 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
148 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
401 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
227 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
704 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
539 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
982 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
149 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
413 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
752 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
440 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 ...