Dynamic Placeholders

entweder oder fragen zum kennenlernen quiz calumniously Dynamic Placeholders for Sitecore allows you to add the same placeholder name several times. This can be across one or more renderings and even the same placeholder can be used multiple times in a single rendering.

How does it work?

gay seznamka starý plzenec Santa Cruz Cabrália Dynamic Placeholders simply use the rendering ID to create a unique placeholder name. If more than one dynamic placeholder with the same name is in a rendering it will also append on an incrementing number. Behind the scenes the Dynamic Placeholders extracts the placeholder name to ensure the correct allowed renderings are shown.

Requirements

  • Sitecore 8+
  • MVC

Installation

persönliche fragen zum kennenlernen peinliche To enable Dynamic Placeholders in your Sitecore solution you can install the https://diabetesfrees.com/prandin-review-side-effects-contraindications-dosage-and-administration/ MVC NuGet package mentioned above.

facebook account loschen dauerhaft Install-Package DynamicPlaceholders.Mvc

gay matchmaking services near greenacres city fl Punalūr Once the package is installed you’ll then need to add the namespace to the http://cirugiagastro.com.mx/17941-was-gefallt-mannern-im-bett-38937/ Views\Web.config.

<system.web.webPages.razor>
	<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
	<pages pageBaseType="System.Web.Mvc.WebViewPage">
		<namespaces>
			<add namespace="DynamicPlaceholders.Mvc.Extensions" />
		</namespaces>
	</pages>
</system.web.webPages.razor>

Usage

Adding Dynamic Placeholders is very easy and the following code snippet shows how.


<div class="column">
	@Html.Sitecore().DynamicPlaceholder("content")
</div>

One Comment

  1. Pingback: Predicting the placeholder for a dynamic placeholder - Technology

Comments are closed.