agrath@gmail.com
49a0c8a11a
Changed return type of @Library.If to IHtmlString so that you can return HTML with it
2011-07-02 17:27:27 -12:00
agrath@gmail.com
8435067e98
Added overload to @Library.If for trueValue only
2011-06-30 11:56:16 -12:00
agrath@gmail.com
eff692249d
Made the int.TryParse and decimal.TryParse in DynamicNode culture aware so that , and . as numeric/decimal seperators are handled properly
2011-06-30 11:00:15 -12:00
agrath@gmail.com
0589d34abd
Changed the implementation of IRazorDataTypeModel to allow for immutable types to be returned such as string, int. Thanks @zpqrtbnk
2011-06-30 10:32:50 -12:00
agrath@gmail.com
9b4a08950c
Added support for attribute first child fallback in DynamicXml
2011-06-30 10:16:30 -12:00
agrath@gmail.com
c7c496cadf
Removed a razor namespace added in an early 4.7.1 build that shouldn't have been there anymore. Wasn't used when debugging but when doing a nant build it got included
2011-06-29 17:47:28 -12:00
agrath@gmail.com
5988ff5da8
Added a try/catch to GetPropertyInternal to catch a potential MissingMethodException when trying to locate a property that didn't exist
2011-06-29 17:45:08 -12:00
agrath@gmail.com
cce3cdc18b
fixed some potential crashes in datatype lookups and a keyalreadyexists exception in datatype lookup
2011-06-29 17:36:37 -12:00
agrath@gmail.com
0475b48a8c
Fixed an issue with new DynamicNode() and DynamicNode.XPath using the wrong overload, thanks @cultiv
2011-06-29 17:18:10 -12:00
agrath@gmail.com
56e9cdb045
Added overloads to @Library.Truncate and @Library.StripHtml for DynamicNull to prevent errors when properties may not exist
2011-06-27 16:52:04 -12:00
agrath@gmail.com
ba8d8f8787
Changed @Library methods which return Dynamic* types to return type dynamic as methods on DynamicNodeList etc wouldn't work due to the type not being dynamic. Because @Model.NodeById got moved to @Library.NodeById and @Model is dynamic, this problem didn't exist before
2011-06-27 12:45:17 -12:00
agrath@gmail.com
a747e4dddc
Merge
2011-06-26 11:27:52 -12:00
agrath@gmail.com
0b47da8d41
Added @Library.Truncate to simulate string.left but not error when string is < length and be html tag aware. Optionally adds elipsis to end of strings
2011-06-26 11:26:02 -12:00
agrath@gmail.com
dc32f500ae
Added @Library.StripHtml to remove HTML tags from a string
2011-06-26 09:51:46 -12:00
hartvig
f1ee827ece
SQL CE 4 double open connection in VerifyConnection method. Thanks Jesper Hauge/Erik Ejskov Jensen for catching that one!
2011-06-23 07:44:13 -02:00
agrath@gmail.com
b59b5052ba
Bug fix: slightly changed behaviour of ordering code when dealing with dynamic properties (e.g. user properties not fields on DynamicNode) and missing data, thanks @Cultiv for the report
2011-06-22 01:08:15 -08:00
agrath@gmail.com
c63b58612d
Renamed a variable on one of the overloads of @Library.Wrap and changed the behaviour of Visible so that it applies at render time, not tag creation time instead of returning null, this will enable chaining for invisible tags as well as being able to change your mind about whether the tag should render or not
2011-06-20 11:11:18 -02:00
agrath@gmail.com
7209d68028
Realised that IHtmlString is an interface and may have a method I can implement to avoid .Write() or .ToHtml() on HtmlTagWrapper. Implemented and tested this. Victory.
2011-06-20 07:47:29 -02:00
agrath@gmail.com
d0d48f18ff
Removed upcasting for uComponents multitreenode picker in DynamicNode ConvertPropertyValueByDataType in favour of the new plugin interface [I]RazorDataTypeModel
2011-06-19 14:40:10 -02:00
agrath@gmail.com
c5906c0c79
merge
2011-06-19 08:35:49 -02:00
agrath@gmail.com
754210456c
Renamed ssaolap01 dev database
2011-06-19 08:19:45 -02:00
agrath@gmail.com
00141ba801
Added a new feature for plugin developers to create a model class that DynamicNode will return for their data type instead of the underlying type
2011-06-19 08:19:11 -02:00
agrath@gmail.com
315003c16f
Changed settings to developer in the erorr message
2011-06-19 07:34:40 -02:00
agrath@gmail.com
28652815ae
Improved the error message for a KeyNotFound exception in datatype factory
2011-06-19 07:27:47 -02:00
agrath@gmail.com
3480a5d957
Made DynamicNodeList.XPath only work for content as it is the only one with an XML Backing document
2011-06-18 15:46:34 -02:00
hartvig
82547abe40
Adds missing SqlCeContextGuardian file
2011-06-17 09:20:59 -02:00
hartvig
6a1aa9a8e6
Massive performance increase on SQL CE4 thanks to Jesper Hauge and Erik Ejlskov Jensen (SQL CE MVP) from Twins #h5yr Work items: 28347
2011-06-17 07:03:45 -02:00
agrath@gmail.com
cdc4c86325
Added ContainsKey check to Language Dictionary to fix a KeyAlreadyExists exception on app startup. Fixes work item 30195
2011-06-16 11:45:01 -02:00
agrath@gmail.com
940239f1f2
Added HtmlTagWrapper.AddChildren and HtmlTagWrapper.AddChildrenAt methods
2011-06-16 11:02:23 -02:00
agrath@gmail.com
d4ed1efcf5
Fixed bug with HtmlTagWrapper.Write not writing if no children or attributes but class names were set
2011-06-16 10:59:36 -02:00
agrath@gmail.com
27aebac7e0
Aliased HtmlTagWrapper.Write as HtmlTagWrapper.ToHtml to match DynamicXml.ToHtml
2011-06-16 10:58:13 -02:00
agrath@gmail.com
86c9e8bde0
Added IsNotEqual IfHelper to DynamicNode and DynamicXml
2011-06-16 10:55:41 -02:00
agrath@gmail.com
9a1cfafb74
Made DynamicXml implicitly search child[0] if no match for dot notation chained child, fixes a regression/backwards compat change break due to the way elements are now consistently returned as sets
2011-06-16 09:54:53 -02:00
agrath@gmail.com
97a9d11cba
Added ToHtml method to DynamicXml which allows you to get an IHtmlString back if you didn't want DynamicXml for XML syntactically correct data
2011-06-16 09:29:38 -02:00
agrath@gmail.com
ee57f4c449
Adds pageName attribute to DynamicNode
...
Rename NodeById to NodesById when dealing with multiple parameters
Fixes work item 30290 : Strip - in element and attribute names for DynamicXml
2011-06-13 15:21:16 -02:00
agrath@gmail.com
2c22bea92f
Renamed inconsistently named multiple NodeById methods
2011-06-13 12:59:36 -02:00
agrath@gmail.com
8112f240be
Fixed an issue with GetProperty not finding properties according to the same case rules as DynamicNode and not falling back to local properties when the property wasn't on the Document Type
2011-06-13 12:28:35 -02:00
agrath@gmail.com
0a04252780
BugFix: Reworked GetProperty to support camel case conversion and reflective property access for non DocumentType properties
2011-06-13 10:15:29 -02:00
agrath@gmail.com
74617e4368
merge
2011-06-13 09:36:44 -02:00
agrath@gmail.com
4eca6e7fbf
updated ignore file and adding web.config transform
2011-06-13 09:35:34 -02:00
agrath@gmail.com
288bbe7b91
Added OrderBy to Grouping so the nested lists can be ordered by (supports single property only but does handle desc)
...
You can control the Group order by manipulating the source list order. Groups will be enumerated in the order they occur.
2011-06-13 09:12:11 -02:00
agrath@gmail.com
d2ddd9a284
Implemented DynamicNodeList.InGroupsOf, DynamicNodeList.GroupedInto and DynamicNodeList.GroupBy
2011-06-13 08:53:06 -02:00
agrath@gmail.com
fbe150c1ce
Fixed a stack overflow in Wrap
2011-06-13 08:39:32 -02:00
agrath@gmail.com
918cdcdffb
Added XPath filter & search to DynamicXml class
...
Added empty method stubs to DynamicNodeList for grouping functionality
2011-06-13 07:13:00 -02:00
agrath@gmail.com
b79586b4d7
Added new methods to HtmlTagWrapper: AddChild(TagWrapperBase [text or node]), AddChild(string), AddChildAt, RemoveChildAt, ClearChildren
...
Added new overloads to Library.Wrap - Adding children in one call and applying predicate check (bool - use @Model.Where() to return a bool)
Added new DynamicNode.Where overload that doesn't ternary text and just returns true/false (same as Element.Match in prototypejs)
2011-06-13 07:01:04 -02:00
hartvig
8279e4d471
Fixes issue with compatibility between .NET Membership and Umbraco Members on logout. Work items: 30171
2011-06-13 06:44:50 -02:00
agrath@gmail.com
60892f9909
fixed .Attr with HtmlTagWrapper
2011-06-12 20:33:48 -02:00
agrath@gmail.com
0cc7799797
HtmlTagWrapper don't write if empty, class methods, attribute methods
2011-06-12 20:12:52 -02:00
agrath@gmail.com
019141c042
Added Anonymous property collections to HtmlTagWrapper
2011-06-12 19:06:09 -02:00
agrath@gmail.com
942a3c3d72
HtmlTagWrapper, a new class to emit content wrapped in HTML tags. Similar to a cross between HtmlGenericControl and Webforms control and Razor HTML helpers.
...
First commit - internal attributes, classes, children and single tag wrapping.
Todo: don't write if empty, class methods, attribute methods, anonymous attribute parsing
2011-06-12 15:03:38 -02:00