diff --git a/src/Umbraco.Web/UmbracoHelper.cs b/src/Umbraco.Web/UmbracoHelper.cs
index b2045bacfb..12d4ce1d76 100644
--- a/src/Umbraco.Web/UmbracoHelper.cs
+++ b/src/Umbraco.Web/UmbracoHelper.cs
@@ -5,11 +5,9 @@ using System.Web;
using System.Xml.XPath;
using Umbraco.Core;
using Umbraco.Core.Dictionary;
-using Umbraco.Core.Exceptions;
using Umbraco.Core.Models;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.Xml;
-using Umbraco.Web.Routing;
using Umbraco.Web.Security;
namespace Umbraco.Web
@@ -367,6 +365,28 @@ namespace Umbraco.Web
return ContentForObjects(ids);
}
+ ///
+ /// Gets the contents corresponding to the identifiers.
+ ///
+ /// The content identifiers.
+ /// The existing contents corresponding to the identifiers.
+ /// If an identifier does not match an existing content, it will be missing in the returned value.
+ public IEnumerable Content(params Udi[] ids)
+ {
+ return ids.Select(id => ContentQuery.Content(id)).WhereNotNull();
+ }
+
+ ///
+ /// Gets the contents corresponding to the identifiers.
+ ///
+ /// The content identifiers.
+ /// The existing contents corresponding to the identifiers.
+ /// If an identifier does not match an existing content, it will be missing in the returned value.
+ public IEnumerable Content(params GuidUdi[] ids)
+ {
+ return ids.Select(id => ContentQuery.Content(id));
+ }
+
private IEnumerable ContentForObjects(IEnumerable