From 34440757c66553e496fcff10acf17d291965ba6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wa=C5=82dis=20Iljuczonok?= Date: Fri, 9 Jun 2017 00:43:56 +0300 Subject: [PATCH] Create README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index f9b3407..3b1bea7 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ For EPiServer v10 support please use `epi10` branch. * [Bootstrap Row Support](https://github.com/valdisiljuconoks/EPiBootstrapArea/blob/master/README.md#bootstrap-row-support) * [Default DisplayOption for Block](https://github.com/valdisiljuconoks/EPiBootstrapArea/blob/master/README.md#default-displayoption-for-block) * [Default DisplayOption for Content Area](https://github.com/valdisiljuconoks/EPiBootstrapArea/blob/master/README.md#default-displayoption-for-content-area) + * [Validate Item Count to Match Bootstrap Columns](https://github.com/valdisiljuconoks/EPiBootstrapArea/blob/master/README.md#validate-item-count) * [Customize Bootstrap Content Area](https://github.com/valdisiljuconoks/EPiBootstrapArea/blob/master/README.md#customize-bootstrap-content-area) * [Provider Model](https://github.com/valdisiljuconoks/EPiBootstrapArea/blob/master/README.md#provider-model) * [Register Custom Provider](https://github.com/valdisiljuconoks/EPiBootstrapArea/blob/master/README.md#register-custom-provider) @@ -190,6 +191,18 @@ public class StandardPage : PageData } ``` +### Validate Item Count + +Thanks to [Jon Jones](http://www.jondjones.com/learn-episerver-cms/episerver-developers-guide/episerver-content-areas/how-to-add-bootstrap-row-validation-within-your-episerver-content-areas) for copyright! If you have Content Area with single row and want to validate item count inside to match single Bootstrap row (12 columns), you just need to add `[BootstrapRowValidation]` attribute: + +``` +public class StartPage : SitePageData +{ + ... + [BootstrapRowValidation] + public virtual ContentArea MainContentArea { get; set; } +``` + ## Customize Bootstrap Content Area In order to customize available display options you need to add new ones through provider model.