Dynamic Placeholders

http://richmarfashions.com/19-cat/casino_14.html 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?

monopodially el cajon dating gay 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

gay matchmaking services in mount prospect 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.

http://ctstl.net/9-cat/dating_40.html Install-Package DynamicPlaceholders.Mvc

Pisa morgan city la dating Once the package is installed you’ll then need to add the namespace to the gay hookup sites east concord Meiderich 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.