Tom Fulton
512edaeaf9
Make Archetype Model enumerable to simplify usage, make Fieldsets internal
2014-03-12 17:36:15 -06:00
Tom Fulton
dd453fc66a
PVC: Return empty Archetype instead of null when empty/errors
2014-03-12 17:13:23 -06:00
leekelleher
7879ae695e
Exposed the internal members to the "Archetype.Courier" (and Test) assemblies.
2014-03-04 17:38:14 +00:00
leekelleher
50ced7459a
Changed the Property properties to internal setters.
...
Made the `DataTypeGuid` property completely `internal`.
2014-03-04 17:37:09 +00:00
leekelleher
89af319265
Merge branch 'master' into feature-patch-courier-dataresolver
2014-03-04 17:25:19 +00:00
Tom Fulton
5a24e9b016
Merge pull request #62 from imulus/versioning
...
Add version # to DLL on build
2014-02-27 13:41:28 -07:00
Kevin Giszewski
b52f153141
Merge pull request #57 from imulus/feature/api
...
Expose the Datatype Service GetById
2014-02-26 08:09:27 -05:00
Tom Fulton
cd2bd8c562
Add version # to DLL on build
...
* Split VersionInfo from AssemblyInfo so we can ignore changes and let the build handle
* Ignore VersionInfo
* Install/configure assemblyinfo grunt task
* Ignore compiler warning about bad version number format (.NET vs SemVer)
2014-02-22 00:32:37 -07:00
Tom Fulton
24bfef64dd
Misc housekeeping
2014-02-21 22:36:27 -07:00
Tom Fulton
1d5e4eda7e
Trim down data returned from API
2014-02-21 22:34:30 -07:00
leekelleher
346b8c73d4
Tidied up the AssemblyInfo with your company details, etc.
2014-02-21 18:17:59 +00:00
leekelleher
43ea29cdf2
Set the assembly references not to all "Copy Local",
...
so that everything isn't copied over to the /bin folders.
2014-02-21 18:14:13 +00:00
leekelleher
de03a12e9c
Added a DataTypeGuid property to the Property object.
...
This is required for Courier's DataResolver to "hot-swap" the DataTypeId (int) with it's unique Id (Guid).
2014-02-21 18:05:53 +00:00
Kevin Giszewski
f05a67d9d2
Expose the Datatype Service GetById
2014-02-20 11:07:20 -05:00
leekelleher
bbe3506747
Housekeeping: Fixed up the whitespace :bowtie:
...
There was a mix of tabs & spaces...
... normalized to use spaces (which was painful for me as I'm a "tabs kinda guy" 🤘
2014-02-13 17:50:07 +00:00
leekelleher
42743b1394
Fleshed out the ArchetypePreValue models.
...
(When Courier packages up the DataTypeDefinition - we need to serialize/deserialize the config options/JSON)
2014-02-13 17:43:52 +00:00
leekelleher
9a712acd6a
Added constant for the prevalue alias.
...
(As we reference to this in the Courier DataResolver)
2014-02-13 17:30:28 +00:00
leekelleher
4c8bbd5d8f
Added a nested try/catch.
...
For if the `PublishedPropertyType` value is null, we can still get an `Archetype` model returned)
2014-02-13 16:53:38 +00:00
leekelleher
9296388abe
Added a constant for the PropertyEditor alias.
...
(So that we can reference it from the Courier DataResolver, without fear of typos)
2014-02-13 16:51:31 +00:00
leekelleher
3c5e2013a0
Added JsonProperty attributes to the properties.
...
(So that we can serialize/deserialize from the Courier DataResolver)
2014-02-13 16:32:03 +00:00
leekelleher
aacbc06992
Changed the Property.DataTypeId property to be public, with an internal setter.
...
(We need to reference it within Courier's DataResolver)
2014-02-13 16:27:29 +00:00
leekelleher
220a034d2a
Changed the Property.Value setter to be public.
2014-02-13 14:16:42 +00:00
Kevin Giszewski
fd2f6a9967
Merge branch 'develop' of github.com:imulus/Archetype into develop
2014-02-07 12:40:26 -05:00
mattbrailsford
7e28dd87b5
Moved GetValue method body to the Property object to allow easy conversion of an untyped property without having to go via the fieldset again.
2014-02-07 12:21:36 -05:00
Kevin Giszewski
bf9e4d53df
Expose some properties which could be useful for iterating and template decision-making
2014-02-07 09:39:57 -05:00
mattbrailsford
33f95253f9
Fixed issue 43
...
- Allows you to access nested complex property editor values by using the build in value converters
2014-02-07 10:59:01 +00:00
Tom Fulton
03e7b2956a
Add tests for Models and ValueConverter
2014-02-03 19:50:47 -07:00
Tom Fulton
121cac5798
Add .Tests project, install packages
2014-01-28 00:26:11 -07:00
Tom Fulton
5a092daca9
Mark package versions as prelease
2014-01-17 03:22:03 -07:00
Kevin Giszewski
bd3cb98fe3
Rename the DLL Assembly (remove Imulus)
2014-01-16 14:26:10 -05:00
Kevin Giszewski
c540f90e4a
Remove Sample Model
2014-01-15 19:17:22 -05:00
Tom Fulton
e5f8dc5634
Add methods to access specific properties from a Fieldset
...
* GetValue("alias") - gets the value as a string
* GetValue<T>("alias") - attempts to convert to the specified types using some of Umbraco's built in TypeConverter logic. If conversion fails, returns default(T). Note this doesn't utilize PropertyValueConverters (yet?)
* GetProperty("alias") - gets a reference to the entire property object. Leaving this private for now, but there may be a reason to publicize someday if we add more properties to the Property object.
2014-01-15 16:17:32 -07:00
Tom Fulton
eea861bb28
Pull in Kevin's PropertyValueConverter project
2014-01-15 15:00:47 -07:00