Tom Fulton 485c6cb6a1 When using ValueConverters, pass along the Content Type - fixes #133
* Add new property HostContentType to make Properties aware of their content type
* Adjust Dummy PropertyType to include the Content Type
* Pass in Content Type from ValueConverter to Deserialization helper through new optional parameter
* Populate the property's HostContentType via RetrieveAdditionalProperties
* Make sure HostContentType isn't persisted

Notes: In some cases, the Umbraco Core looks for pt.ContentType.Alias, which didn't exist previously in our Dummy PropertyType.  This would also potentially cause an error if any PVC's do the same.

To fix we now keep track of the Content Type that the Archetype exists on (determined in the ArchetypeValueConverter), and pass this along to our Dummy PropertyType (and thus to PVCs)

Note we made the hostContentType an optional parameter as there's some cases where we won't know the content type (ie ConvertDbToEditor).  This (shouldn't?) be an issue as these cases should never have a reason to call GetValue.
2014-05-27 14:31:23 -06:00
2014-03-18 22:50:11 -06:00
2014-01-10 16:22:14 -08:00
2014-03-18 22:50:11 -06:00
2014-04-03 17:47:13 -04:00

Archetype

alt tag

Installation

Install the selected release through the Umbraco package installer or via NuGet.

Official Docs

http://imulus.github.io/Archetype

Follow us on Twitter https://twitter.com/ArchetypeKit

Contribute

Want to contribute to Archetype? You'll want to use Grunt (our task runner) to help you integrate with a local copy of Umbraco.

Install Dependencies

Requires Node.js to be installed and in your system path

npm install -g grunt-cli && npm install -g grunt
npm install

Build

grunt

Builds the project to /dist/. These files can be dropped into an Umbraco 7 site, or you can build directly to a site using:

grunt --target="D:\inetpub\mysite"

You can also watch for changes using:

grunt watch
grunt watch --target="D:\inetpub\mysite"

Add --touch to either command to automatically touch the web.config on a deploy

S
Description
Archetype is an Umbraco 7 property editor that wraps other installed property editors.
Readme MIT 2.9 MiB
Languages
JavaScript 51.9%
C# 31.7%
HTML 11.5%
Less 4.9%