Skip to content

WebCentrum/Umbraco-Core-Property-Value-Converters

 
 

Repository files navigation

Umbraco Core Property Value Converters v2#

Build status

Umbraco Package: http://our.umbraco.org/projects/developer-tools/umbraco-core-property-value-converters
Nuget Package: Install-Package Our.Umbraco.CoreValueConverters
MyGet Latest Build Package: https://www.myget.org/gallery/umbraco-core-property-value-converters

Once installed you cannot access the original raw value of the property by using Model.Content.GetPropertyValue("propertyAlias") however you can access it by using Model.Content.GetProperty("propertyAlias").DataValue.ToString()

The v2 package for Umbraco v7 currently implements converters for the following built-in Umbraco property editors:

These converters work with both the typed IPublishedContent (Model.Content) and also the dynamic DynamicPublishedContent (CurrentPage). We use some dark magic (StackTrace) to make sure we return the correct model. However if you only use one model you can specify this by adding a optional key to app settings of your web.config, this will avoid the dark magic and therefore improve performance. The optional setting is as follows:

<add key="Our.Umbraco.CoreValueConverters:Mode" value="typed" />
<add key="Our.Umbraco.CoreValueConverters:Mode" value="dynamic" />

Change Log

This project is MIT licensed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.4%
  • HTML 13.0%
  • CSS 7.1%
  • Classic ASP 5.6%
  • C# 2.1%
  • XSLT 0.8%