Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/MartinMiles/Sitecore.Foundation.Fields

Custom fields for Sitecore
https://github.com/MartinMiles/Sitecore.Foundation.Fields

Last synced: 3 months ago
JSON representation

Custom fields for Sitecore

Lists

README

        

# Sitecore.Foundation.Fields

Custom field(s) ready-to-use with your Sitecore solution.

### Prerequisites

This repository is configured to work with **Sitecore 9.0 Update 2** by default. If you are working with any of later versions - please update NuGet packages to appropriate version.

This package contains serialized item to be synced into **Core** database by using Unicorn with Rainbow 2.0 format.

## Role Multilist Selector field

**Role Multilist Selector** is a multi-select field allowing you select numerous roles from Sitecore built-in security and mix it with regular items.
That in fact allows you creaing a various high-level subscription model or any sort of customization / personalization based on role that logged user belongs to.

![Sitecore.Foundation.Fields](https://raw.githubusercontent.com/wiki/MartinMiles/Sitecore.Foundation.Fields/images/role_selector.png "Sitecore.Foundation.Fields")

#### Parameters

`Domain` - works as a filter for showing only roles of specific domain.

Using **Source** column you may set it as:
```
Domain=your_sitecore_domain
```

## Color Picker field

**Color Picker** is a custom field that allows you selecting a precise color from a full palette of available colours. Once referenced from a template, it returns RGB value of selected color in hex format, as below:

```
#ABC123
```

![Sitecore.Foundation.Fields](https://raw.githubusercontent.com/wiki/MartinMiles/Sitecore.Foundation.Fields/images/color_picker.png "Sitecore.Foundation.Fields")

## Related blog post

* [Roles Multilist Selector](http://blog.MartinMiles.net/post/implementing-role-selector-field-with-sitecore) - the blog post I wrote about **Roles Multilist Selector**.

### Credits

I want to warmly thank Mike Reynolds for his research re. custom fields and some of the code I've borrowed from him.

* [Mike Reynolds](https://sitecorejunkie.com) - great man and Sitecore MVP, who does many crazy tricks with Sitecore, ispiring others like me.
* [Alex Shyba](https://twitter.com/alexshyba) - a lifetime Sitecore MVP who previously worked for Sitecore and influenced platfor so much.

## Contact author

* [Twitter](https://twitter.com/SitecoreMartin) - Twitter
* [LinkedIn](https://www.linkedin.com/in/martin-miles/) - LinkedIn profile
* [Sitecore Slack](https://sitecorechat.slack.com/team/U0KDE1VD3/) - reference to a profiles at Sitecore Slack channel
* [Author's blog](http://blog.MartinMiles.net/) - "Experience Sitecore!" blog with plenty of interesting things about Sitecore and its implementation