diff --git a/src/Umbraco.Web/PublishedContentExtensions.cs b/src/Umbraco.Web/PublishedContentExtensions.cs index dbd5008b74..8af2a933f2 100644 --- a/src/Umbraco.Web/PublishedContentExtensions.cs +++ b/src/Umbraco.Web/PublishedContentExtensions.cs @@ -1120,15 +1120,15 @@ namespace Umbraco.Web #endregion - #region Axes: siblings + #region Axes: Parent Children (siblings including self) /// - /// Gets the siblings of the content. + /// Gets the children of the parent of the content. /// /// The content. /// The specific culture to filter for. If null is used the current culture is used. (Default is null) - /// The siblings of the content. - public static IEnumerable Siblings(this IPublishedContent content, string culture = null) + /// The children of the parent of the content. + public static IEnumerable ParentChildren(this IPublishedContent content, string culture = null) { return content.Parent != null ? content.Parent.Children(culture) @@ -1136,13 +1136,13 @@ namespace Umbraco.Web } /// - /// Gets the siblings of the content, of a given content type. + /// Gets the children of the parent of the content, of a given content type. /// /// The content. /// The specific culture to filter for. If null is used the current culture is used. (Default is null) /// The content type alias. - /// The siblings of the content, of the given content type. - public static IEnumerable SiblingsOfType(this IPublishedContent content, string contentTypeAlias, string culture = null) + /// The children of the parent of the content, of the given content type. + public static IEnumerable ParentChildrenOfType(this IPublishedContent content, string contentTypeAlias, string culture = null) { return content.Parent != null ? content.Parent.ChildrenOfType(contentTypeAlias, culture) @@ -1150,13 +1150,13 @@ namespace Umbraco.Web } /// - /// Gets the siblings of the content, of a given content type. + /// Gets the children of the parent of the content, of a given content type. /// /// The content type. /// The content. /// The specific culture to filter for. If null is used the current culture is used. (Default is null) - /// The siblings of the content, of the given content type. - public static IEnumerable Siblings(this IPublishedContent content, string culture = null) + /// The children of the parent of the content, of the given content type. + public static IEnumerable ParentChildren(this IPublishedContent content, string culture = null) where T : class, IPublishedContent { return content.Parent != null