This module provides a list of useful Liquid filters.
1.2.1
Content Management
There's no dependencies.
Name | Liquid (OrchardCoreContrib.Liquid ) |
Description | Provides a list of liquid filters. |
Dependencies |
Name | Version |
---|---|
OrchardCoreContrib.Liquid |
1.2.1 |
OrchardCoreContrib.Liquid |
1.2.0 |
OrchardCoreContrib.Liquid |
1.1.0 |
OrchardCoreContrib.Liquid |
1.0.0 |
OrchardCoreContrib.Liquid |
1.0.0-beta1 |
- Install the
OrchardCoreContrib.Liquid
NuGet package to your Orchard Core host project. - Go to the admin site
- Select Configuration -> Features menu.
- Enable the
Liquid
feature. - User avatar should be displayed on the user menu.
The following objects are accessible from within the liquid template:
Environment
Allows you to access the hosting enviornment object. The Environment
object exposes three properties IsDevelopment
, IsStaging
and IsProduction
.
{% if Environment.IsProduction %}
<p>Your site is running on LIVE environment.</p>
{% endif %}