Commit Graph

206 Commits

Author SHA1 Message Date
Sebastiaan Janssen
57ed4698f0 Revert "Revert "The Value() method for IPublishedContent was not working with the defaultValue parameter" (#9989)"
This reverts commit 156c1c9416.
2021-04-19 17:31:09 +02:00
Nathan Woulfe
958e25d4ba Revert updating deprecated WriterName/CreatorName refs
Changing the properties to use the extensions is a good thing (given the props are deprecated), but causes issues deep in tests. I'm reverting that change to fix the tests, and all refs to the deprecated properties should be updated in one sweep, to deal with any other test issues that might crop up.
2021-03-30 13:22:04 +02:00
Ronald Barendse
dcc07fd612 Add Root<T> and Breadcrumbs extension methods for IPublishedContent (#9033)
* Fix usage of obsolete CreatorName and WriterName properties

* Add generic Root extension method

* Add Breadcrumbs extension methods
2021-03-29 09:13:53 +10:00
Michael Latouche
156c1c9416 Revert "The Value() method for IPublishedContent was not working with the defaultValue parameter" (#9989) 2021-03-17 10:29:31 +01:00
Shannon Deminick
52b670973d The Value() method for IPublishedContent was not working with the defaultValue parameter (#9888)
* The Value() method for IPublishedContent was not working with the defaultValue parameter

* Update src/Umbraco.Web/PublishedContentExtensions.cs

* Update src/Umbraco.Web/PublishedPropertyExtension.cs

* Update src/Umbraco.Web/PublishedPropertyExtension.cs

* Update src/Umbraco.Web/PublishedPropertyExtension.cs
2021-03-02 01:23:26 +01:00
Ronald Barendse
2bfef74191 Fix casing of 'URL' (#9080) 2020-10-05 20:48:38 +02:00
Ronald Barendse
0886ada39c Properly HTML encode text in helper methods (#6545) 2020-06-19 11:41:16 +02:00
Bjarne Fyrstenborg
54f75b9393 No more TypedContentAtRoot (#7763) 2020-03-24 17:41:26 +01:00
Steve Temple
6b46167180 In GetDataTable use Obsolete CreatorName and WriterName for now 2020-01-31 14:40:37 +00:00
Steve Temple
377f1925ea Obsolete CreatorName and WriterName on IPublishedContent 2020-01-31 09:34:08 +00:00
Dave Woestenborghs
f92d0b59bd Make sure the configured url provider mode is used when getting a url (#7189) 2020-01-10 10:41:37 +01:00
rbottema
c8c5dfe594 Fix ContentType.Alias matching in PublishedContentExtensions an… (#6577) 2019-10-15 13:25:50 +02:00
christophnz
1d94c4b9bb Fixed returntype of IPublishedContent.Siblings<T> to be IEnumerable<T> rather than IEnumerable<IPublishedContent> 2019-08-30 14:27:13 +02:00
Stephan
14a056f4f4 Fix and cleanup 2019-06-07 11:15:58 +02:00
Stephan
7fd6bfa163 Make IPublishedContent changes less breaking and more friendly 2019-06-06 16:54:00 +02:00
Stephan
bb0331e9cc Move IPublishedContent.Url() to ext method 2019-04-24 14:25:41 +02:00
Stephan
4feb766cc6 Fix IPublishedContent.Children() and NuCache 2019-04-23 08:29:43 +02:00
Stephan
55d4457c70 UmbracoContext: don't use obsolete properties 2019-04-23 08:29:43 +02:00
Stephan
05c85bbce5 NuCache: children as linked lists 2019-04-23 08:28:26 +02:00
Stephan
2270188668 Refactor IPublishedContent.Children() 2019-04-23 08:28:23 +02:00
Stephan
41e14a62c0 Refactor IPublishedContent.Parent() 2019-04-23 08:27:50 +02:00
Stephan
a996d46b6f Refactor IPublishedContent.GetCultureFromDomains() 2019-04-23 08:27:50 +02:00
Stephan
e062ea8d31 Refactor IPublishedContent.CultureDate(), .Cultures 2019-04-23 08:27:50 +02:00
Stephan
11ef00c63d Refactor IPublishedContent.Url() 2019-04-23 08:27:49 +02:00
Stephan
2b54cc50ab Refactor IPublishedContent.UrlSegment() 2019-04-23 08:27:49 +02:00
Stephan
890d7d8ce3 Refactor IPublishedContent.Name() 2019-04-23 08:27:48 +02:00
Stephan
e540a4ac23 IsVisible moves from publishde content to element 2019-04-09 21:24:55 +02:00
Bjarke Berg
e4c6ef05a9 Introduced both Siblings and SiblingsAndSelf 2019-03-19 14:59:52 +01:00
Bjarke Berg
e73029cf4f Rename siblings to ParentChildren (Because the actual returned list contains the content node self) 2019-03-19 13:08:08 +01:00
Stephan
02764e0ccc Implement IPublishedContent Siblings 2019-03-05 13:02:59 +01:00
Shannon
65f99a9bfd renames the method params to be consistent 2019-02-20 21:06:36 +11:00
Shannon
6c23066fb7 Fixes the Content.Children conundrum with ChildrenOfType method 2019-02-20 21:03:36 +11:00
Stephan
abceda7750 Kill UmbracoContext.Current 2019-02-14 10:39:49 +01:00
Shannon
22d879ab35 Merge branch 'temp8' into temp8-fixme-no-caching-of-url-and-inject-umbraco-context-accessor
# Conflicts:
#	src/Umbraco.Tests/PublishedContent/NuCacheTests.cs
#	src/Umbraco.Web/Models/PublishedContentBase.cs
#	src/Umbraco.Web/PublishedCache/NuCache/ContentNode.cs
#	src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs
2019-01-29 17:12:35 +11:00
Chris Houston
193e24afd2 Fixing all the TODO, FIXME & HACK comments so they all follow the same layout. 2019-01-27 11:16:00 +01:00
Stephan
e4c644e745 Consistent PublishedContentExtensions, culture always optional 2019-01-24 15:29:50 +01:00
Bjarke Berg
49b2a9a080 Fixes for search of members + Removed fixme in member that apparently are not necessary after tags refactoring 2019-01-24 12:17:30 +01:00
Warren Buckley
6e1a860e77 Merge pull request #4211 from umbraco/temp8-PublishedContentExtensions-handling-methods-hidden-by-overload
Fixme - Handled "Method with optional parameter is hidden by overload" issues
2019-01-24 11:07:12 +00:00
Bjarke Berg
f8b9fb039f Handle culture not set in HasCulture. 2019-01-23 15:35:20 +01:00
Bjarke Berg
d2d852f0f3 Handled "Method with optional parameter is hidden by overload" issues 2019-01-23 10:39:51 +01:00
Bjarke Berg
ddace54f45 Fixed wrong merge in Children() method 2019-01-23 07:51:43 +01:00
Stephan
c840895f90 Deal with more fixme 2019-01-22 09:49:35 +01:00
Stephan
ee0c868687 Misc fixes for PR and Fallback 2019-01-21 16:02:16 +01:00
Bjarke Berg
59fe603ef7 Merge remote-tracking branch 'origin/temp8' into temp8-3668-query-builder-snippits
# Conflicts:
#	src/Umbraco.Web/PublishedContentExtensions.cs
2019-01-18 08:34:14 +01:00
Stephan
e42995cf10 Fixes for the IPublishedContent Linq/Culture PR 2019-01-17 18:23:23 +01:00
Bjarke Berg
174db65714 3908 - Query build returns v8 valid statement - and examples of returned items 2019-01-17 13:33:44 +01:00
Bjarke Berg
35650536c8 3305 - Use the VariationContext instead of thread directly 2019-01-16 13:23:19 +01:00
Bjarke Berg
b4f2d514be #3305 - changed new method to be internal 2019-01-16 11:44:27 +01:00
Bjarke Berg
8ad998ab12 #3305 - Clean up and xml-comments 2019-01-16 08:21:24 +01:00
Bjarke Berg
a27577c17d #3305 - Handle invariants 2019-01-16 07:46:10 +01:00