Skip to content

Commit 7fdba95

Browse files
committed
Add GetDeliveryApiValue method to make it compatible with later versions of 12 and 13
1 parent 01bd8cb commit 7fdba95

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/Our.Umbraco.Meganav/Our.Umbraco.Meganav.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net5.0;net6.0;net7.0</TargetFrameworks>
3+
<TargetFrameworks>net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
44
<Version Condition="'$(BUILD_BUILDNUMBER)' == ''">1.0.0.0</Version>
55
<Version Condition="'$(BUILD_BUILDNUMBER)' != ''">$(BUILD_BUILDNUMBER)</Version>
66
<Description>A flexible, draggable link picker for constructing site navigation menus in Umbraco</Description>
@@ -31,4 +31,7 @@
3131
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
3232
<PackageReference Include="Umbraco.Cms.Infrastructure" Version="[11.0.0,13.0.0)" />
3333
</ItemGroup>
34+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
35+
<PackageReference Include="Umbraco.Cms.Infrastructure" Version="[13.0.0,14.0.0)" />
36+
</ItemGroup>
3437
</Project>

src/Our.Umbraco.Meganav/PublishedContent/PublishedElementProperty.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public PublishedElementProperty(IPublishedPropertyType propertyType, IPublishedE
2626

2727
public object GetSourceValue(string culture = null, string segment = null) => _sourceValue.Value;
2828

29+
public object GetDeliveryApiValue(bool expanding, string culture = null, string segment = null) => _objectValue.Value;
30+
2931
public object GetValue(string culture = null, string segment = null) => _objectValue.Value;
3032

3133
public object GetXPathValue(string culture = null, string segment = null) => _xpathValue.Value;

0 commit comments

Comments
 (0)