experience-editor

Sitecore MVC Ensure empty placeholder is selectable in experience editor

☆樱花仙子☆ 提交于 2019-12-12 18:16:48
问题 Is there some trick with placeholders in Sitecore MVC to ensure that they are always selectable in the page editor experience editor even when they don't contain any renderings? My controller rendering declares the placeholder in the cshtml view as follows: <div> <!-- some html markup and fields rendered here --> @Html.Sitecore().Placeholder("my-component-placeholder") </div> 回答1: To ensure placeholder visibility and selectability, you need to ensure the following: A placeholder settings item

Sitecore 8: Automatically fill a placeholder by a default rendering

拜拜、爱过 提交于 2019-12-10 15:01:16
问题 I was playing around with dynamic placeholders and was struck by a prefilling concept.Is there a way to select a default rendering for one of my placeholders which would avoid the "select rendering" dialog in experience editor ?? Scenario: I have a rendeing called "PageHead" which has three renderings. One of them is a placeholder "PageTeaserPh" which currently allows two renderings: one is "PageTeaser" and second "PageTeaserWithImage". I want the placeholder "PageTeaserPh" to always have the