Skip to content

Commit

Permalink
Add GetDeliveryApiValue method to make it compatible with later versi…
Browse files Browse the repository at this point in the history
…ons of 12 and 13
  • Loading branch information
Rockerby committed Mar 6, 2024
1 parent 01bd8cb commit 7fdba95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Our.Umbraco.Meganav/Our.Umbraco.Meganav.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net5.0;net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
<Version Condition="'$(BUILD_BUILDNUMBER)' == ''">1.0.0.0</Version>
<Version Condition="'$(BUILD_BUILDNUMBER)' != ''">$(BUILD_BUILDNUMBER)</Version>
<Description>A flexible, draggable link picker for constructing site navigation menus in Umbraco</Description>
Expand Down Expand Up @@ -31,4 +31,7 @@
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
<PackageReference Include="Umbraco.Cms.Infrastructure" Version="[11.0.0,13.0.0)" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Umbraco.Cms.Infrastructure" Version="[13.0.0,14.0.0)" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7fdba95

Please sign in to comment.