15 votes

What's difference between Static and Dynamic placeholder? How to choose one over another?

Simplified, this is how you can think of Sitecore placeholders and how Sitecore uses them to build up your page. Sitecore Presentation Details, regular placeholders For any page, Sitecore maintains a &...
Mark Cassidy's user avatar
  • 25.1k
14 votes
Accepted

Component not showing as an option to add to a placeholder?

Ensure that the component (either the sublayout, view rendering item or the controller rendering item) has it's "editable" checkbox checked.
Phil Burton's user avatar
  • 1,314
12 votes
Accepted

Migration from Fortis DynamicPlaceholders to Sitecore 9 DynamicPlaceholders

This is the script I've used in the past: # specify your path here. It is most likely be page templates and page content $startPath = "/sitecore/content" Get-ChildItem -Path $startPath -Recurse | ...
vzaverugo's user avatar
  • 831
11 votes
Accepted

Dynamic Placeholders Not Working in Sitecore 9

The key for a dynamic placeholder uses the parent unique rendering Id to become dynamic, it also appends an incremental number in case you want multiple placeholders. In your example: <!-- Right ...
Richard Seal's user avatar
  • 20.4k
10 votes
Accepted

Predicting the placeholder for a dynamic placeholder

You can try to open the standard values item with the Experience Editor and add the renderings you like. If that doesn't work out, create an item based on the template, add the renderings and ...
Thomas D's user avatar
  • 1,703
8 votes

Migration from Fortis DynamicPlaceholders to Sitecore 9 DynamicPlaceholders

Here is a modified version of @vzaverugo's script to account for when you have multiple placeholders with the same name in a single rendering. Fortis will append an incremental seed suffix. Sitecore 9 ...
Mike M's user avatar
  • 201
8 votes
Accepted

How to use Dynamic Placeholders

It sounds like you have added the component to a placeholder key called section - with dynamic placeholders there will be an extra bit of data appended to that. Depending on the version of dynamic ...
Richard Seal's user avatar
  • 20.4k
8 votes
Accepted

Benefits of static vs dynamic binding of renderings

What is static- and dynamic bindings in general? Static binding means adding a rendering to a page in a raw way, e.g. in an mvc view: @Html().RenderAction("Controller", "Action"); ...
Andrey Bobrov's user avatar
8 votes
Accepted

Why placeholder settings when you can bypass them?

Placeholder Settings are used if you want to restrict someone to add renderings on a specific part of a page on Experience Editor. For example, let's say your page layout homepage is divided into 3 ...
adarsh's user avatar
  • 818
6 votes
Accepted

Find Out If Dynamic Placeholder Has Renderings

Updated OK - so this is a lot more complex than I thought it might be. Basically, because of the way that Sitecore handles renderings and placeholders, there is no way of getting all the placeholder ...
Richard Seal's user avatar
  • 20.4k
5 votes
Accepted

ERROR One or more exceptions occurred while processing the subscribers to the 'item:saved' event

After some debugging by overriding the pipeline with my own I figured out this was due to an empty _renderings field. The _finalrenderings field was populated but the _renderings field wasn't and the ...
Adam Seabridge's user avatar
5 votes
Accepted

Dynamic Placeholders Sorting

The behaviour you're seeing is because, by default, an incremental integer is used to differentiate the same placeholder name/rendering ID. The current version of Fortis Dynamic Placeholders allows ...
Jason Bert's user avatar
5 votes

How to have nested placeholders when using dynamic placeholders

It's not really an answer to your direct question, but it's a solution. I am using Fortis dynamic placeholder for MVC right now. Works out of the box. Zero problems with nesting. Site: http://fortis....
Chris Auer's user avatar
  • 13.1k
5 votes

Form Dynamic Placeholder use

It is possible to use the Fortis Dyanmic Placeholders in Web Forms however you'll need to create your own method of generating the placeholder ID. The MVC implementation is as follows: public static ...
Jason Bert's user avatar
5 votes

What's difference between Static and Dynamic placeholder? How to choose one over another?

Mark Cassidy's response explains the why best. However just to summarize, without Dynamic Placeholders, if you are trying to build a truly reusable website, where you reuse components as much as ...
Dylan Young's user avatar
  • 4,314
5 votes

Using Sitecore 10 Dynamic Placeholder via Content Editor

OOTB it is not possible adding dynamic placeholder via Content editor. We can add dynamic placeholder only by experience editor.
Rishiraj Shekhawat's user avatar
4 votes

Sitecore 9 dynamic placeholders with compatible renderings

Workaround This is a bug in the Experience Editor. You can work around this issue by changing the rendering in Presentation Details with the Change button. Root Cause When you replace a rendering with ...
Corey Smith's user avatar
  • 2,708
3 votes
Accepted

Native Dynamic Placeholders overlap on the Experience Editor

So, after wrestling with this for awhile, I finally figured out what the problem was. It seems I had forgotten to assign a placeholder setting to the dynamic placeholder, which then caused rendering ...
Xalor90's user avatar
  • 145
3 votes
Accepted

Detect renderings with invalid placeholder path?

If all of your dynamic placeholder keys contains the rendering UID then it should be possible. Let's expect that your placeholder keys look like this: /main/wrapper_0b720b64f1a648dd9774cdc1484e7152 ...
Tamás Tárnok's user avatar
3 votes

Predicting the placeholder for a dynamic placeholder

This is an alternative to the method mentioned by Thomas D. The Fortis solution uses the UID for the rendering attached to the placeholder key that you enter. You can get this by changing to Raw ...
Richard Seal's user avatar
  • 20.4k
3 votes
Accepted

Dynamic Placeholders marketplace module throws method definition error

From the error message, it sounds like the DLL for the Dynamic Placeholder isn't a known reference for your views. You'll want to add the following line to your /Views/Web.config file in your view ...
Patrick Barron's user avatar
3 votes

Why placeholder settings when you can bypass them?

Placeholder settings are used for Experience Editor. For a non technical guy which doesn't know very well your solution is almost impossible to know on which placeholder should add every component of ...
Vlad Iobagiu's user avatar
  • 18.3k
3 votes
Accepted

Sequential Key Dynamic Placeholder for MVC

I have previously created a similar implementation, though taking a slightly different approach, based on the renderings of the current item, rather than the available placeholder contexts. private ...
Kasper's user avatar
  • 2,156
3 votes
Accepted

component is added twice in dynamic placeholder

1) For the col-wide-2, make sure the Editable checkbox is checked on the placeholder settings. 2) Have you perhaps added the 2-column-6-6 on the standard values of your template and then added it ...
Koen Heye's user avatar
  • 1,626
3 votes
Accepted

Is there a way to use @Editable (Glass-mapper) and an anonymous model in an html input placeholder?

It would be difficult to update placeholder text in the input field because whenever you will update placeholder text, the cursor will show in the input field. There could be one way where you can add ...
Swati Gupta's user avatar
  • 2,890
3 votes
Accepted

SXA Scriban Dynamic Placeholders

Using asterix at the end of your placeholder key in Scriban will solve your issue. (It works well in SXA 10.1) {{ sc_placeholder "myplaceholderkey*" }}
Árvai Mihály's user avatar
2 votes
Accepted

Components duplicating on front end

This was just because caching had been mistakenly added to the Sublayouts that use dynamic placeholders. Edit (further explanation): We have a set of sublayouts/renderings that are used for page ...
David Masters's user avatar
2 votes

Detect renderings with invalid placeholder path?

At run-time, yes. Sort of. But if you're considering a programmatic loop, there are various reasons why this would be very difficult to achieve. Thing is: Sitecore doesn't know which placeholders ...
Mark Cassidy's user avatar
  • 25.1k
2 votes

Sitecore 9.1 dynamic placeholder

By default Sitecore 9 generate dynamic placeholder key in this format {placeholder key}-{rendering unique suffix}-{unique suffix within rendering} richtext-{3F6606D1-BA9C-40DD-8D17-704D0396683D}-10 ...
Swati Gupta's user avatar
  • 2,890
2 votes

SXA Dynamic Placeholders not working when creating multiple placeholders inside of a single rendering

You have to add the IsRenderingsWithDynamicPlaceholders: true in Controller or View Renderings.
Vaishnavi Ganesh's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible