From 7fdba95f629e4353c844101003e4ac875df43eec Mon Sep 17 00:00:00 2001 From: Richard Ockerby Date: Wed, 6 Mar 2024 12:46:14 +0000 Subject: [PATCH] Add GetDeliveryApiValue method to make it compatible with later versions of 12 and 13 --- src/Our.Umbraco.Meganav/Our.Umbraco.Meganav.csproj | 5 ++++- .../PublishedContent/PublishedElementProperty.cs | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Our.Umbraco.Meganav/Our.Umbraco.Meganav.csproj b/src/Our.Umbraco.Meganav/Our.Umbraco.Meganav.csproj index e0dcbbf..3364478 100644 --- a/src/Our.Umbraco.Meganav/Our.Umbraco.Meganav.csproj +++ b/src/Our.Umbraco.Meganav/Our.Umbraco.Meganav.csproj @@ -1,6 +1,6 @@  - net5.0;net6.0;net7.0 + net5.0;net6.0;net7.0;net8.0 1.0.0.0 $(BUILD_BUILDNUMBER) A flexible, draggable link picker for constructing site navigation menus in Umbraco @@ -31,4 +31,7 @@ + + + \ No newline at end of file diff --git a/src/Our.Umbraco.Meganav/PublishedContent/PublishedElementProperty.cs b/src/Our.Umbraco.Meganav/PublishedContent/PublishedElementProperty.cs index 1ba5d97..e5bbc28 100644 --- a/src/Our.Umbraco.Meganav/PublishedContent/PublishedElementProperty.cs +++ b/src/Our.Umbraco.Meganav/PublishedContent/PublishedElementProperty.cs @@ -26,6 +26,8 @@ public PublishedElementProperty(IPublishedPropertyType propertyType, IPublishedE public object GetSourceValue(string culture = null, string segment = null) => _sourceValue.Value; + public object GetDeliveryApiValue(bool expanding, string culture = null, string segment = null) => _objectValue.Value; + public object GetValue(string culture = null, string segment = null) => _objectValue.Value; public object GetXPathValue(string culture = null, string segment = null) => _xpathValue.Value;