File tree Expand file tree Collapse file tree
src/OrchardCoreContrib.Liquid Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 <PackageVersion Include =" OrchardCore.Users.Core" Version =" 2.2.0" />
4040 <PackageVersion Include =" OrchardCoreContrib.Abstractions" Version =" 1.4.0" />
4141 <PackageVersion Include =" OrchardCoreContrib.ContentLocalization.Core" Version =" 1.2.0" />
42+ <PackageVersion Include =" OrchardCoreContrib.DisplayManagement.Liquid" Version =" 1.0.0" />
4243 <PackageVersion Include =" OrchardCoreContrib.Data" Version =" 1.2.0" />
4344 <PackageVersion Include =" OrchardCoreContrib.Data.YesSql" Version =" 1.2.0" />
4445 <PackageVersion Include =" OrchardCoreContrib.Email" Version =" 1.6.0" />
Original file line number Diff line number Diff line change 55 Name = "Liquid" ,
66 Author = ManifestConstants . Author ,
77 Website = ManifestConstants . Website ,
8- Version = "1.2.1 " ,
8+ Version = "1.4.0 " ,
99 Description = "Provides a list of useful liquid filters." ,
1010 Category = "Content Management"
1111) ]
Original file line number Diff line number Diff line change 1- <Project Sdk =" Microsoft.NET.Sdk" >
1+ <Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <VersionPrefix >1.3 .0</VersionPrefix >
4+ <VersionPrefix >1.4 .0</VersionPrefix >
55 <Authors >The Orchard Core Contrib Team</Authors >
66 <Company />
7+ <PackageReadmeFile >README.md</PackageReadmeFile >
78 <Description >Provides a list of useful Liquid filters.</Description >
89 <PackageLicenseExpression >BSD-3-Clause</PackageLicenseExpression >
910 <PackageProjectUrl >https://github.com/OrchardCoreContrib/OrchardCoreContrib.Modules/tree/main/src/OrchardCoreContrib.Liquid/README.md</PackageProjectUrl >
2526
2627 <ItemGroup >
2728 <None Include =" ../../images/icon.png" Pack =" true" PackagePath =" icon.png" />
29+ <None Include =" README.md" Pack =" true" PackagePath =" \" />
2830 </ItemGroup >
2931
3032 <ItemGroup >
31- <PackageReference Include =" OrchardCore.Liquid.Abstractions" />
3233 <PackageReference Include =" OrchardCore.Module.Targets" />
3334 <PackageReference Include =" OrchardCoreContrib.Abstractions" />
35+ <PackageReference Include =" OrchardCoreContrib.DisplayManagement.Liquid" />
3436 </ItemGroup >
3537
3638</Project >
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ This module provides a list of useful Liquid filters.
44
55## Version
66
7- 1.2.1
7+ 1.4.0
88
99## Category
1010
@@ -26,6 +26,7 @@ There's no dependencies.
2626
2727| Name | Version |
2828| -----------------------------------------------------------------------------------------------------| --------------|
29+ | [ ` OrchardCoreContrib.Liquid ` ] ( https://www.nuget.org/packages/OrchardCoreContrib.Liquid/1.3.0 ) | 1.4.0 |
2930| [ ` OrchardCoreContrib.Liquid ` ] ( https://www.nuget.org/packages/OrchardCoreContrib.Liquid/1.3.0 ) | 1.3.0 |
3031| [ ` OrchardCoreContrib.Liquid ` ] ( https://www.nuget.org/packages/OrchardCoreContrib.Liquid/1.2.1 ) | 1.2.1 |
3132| [ ` OrchardCoreContrib.Liquid ` ] ( https://www.nuget.org/packages/OrchardCoreContrib.Liquid/1.2.0 ) | 1.2.0 |
Original file line number Diff line number Diff line change 11using Fluid ;
2- using Fluid . Values ;
32using Microsoft . Extensions . DependencyInjection ;
4- using Microsoft . Extensions . Hosting ;
53using OrchardCore . Modules ;
4+ using OrchardCoreContrib . DisplayManagement . Liquid ;
65
76namespace OrchardCoreContrib . Liquid ;
7+
88public class Startup : StartupBase
99{
10- private readonly IHostEnvironment _hostEnvironment ;
11-
12- public Startup ( IHostEnvironment hostEnvironment )
13- {
14- _hostEnvironment = hostEnvironment ;
15- }
16-
1710 public override void ConfigureServices ( IServiceCollection services )
1811 {
19- var environment = new Environment
20- {
21- IsDevelopment = BooleanValue . Create ( _hostEnvironment . IsDevelopment ( ) ) ,
22- IsStaging = BooleanValue . Create ( _hostEnvironment . IsStaging ( ) ) ,
23- IsProduction = BooleanValue . Create ( _hostEnvironment . IsProduction ( ) )
24- } ;
25-
12+ // Override the "Environment" value from OrchardCore.DisplayManagement.Liquid
2613 services . Configure < TemplateOptions > ( options =>
27- {
28- options . Scope . SetValue ( "Environment" , new ObjectValue ( environment ) ) ;
14+ options . Scope . Delete ( Constants . FluidValueNames . Environment ) ) ;
2915
30- options . MemberAccessStrategy . Register < Environment > ( ) ;
31- } ) ;
16+ services . AddLiquidDisplayManagement ( ) ;
3217 }
3318}
You can’t perform that action at this time.
0 commit comments