Liquid Tag Disabled by Default, Pattern for Text Field - This week in Orchard (10/10/2025)

The full Orchard Harvest 2025 program is live! The topics for this week include disabling the Liquid tag by default and adding a From field to SmsMessage to support sending messages from different phone numbers. See a demo of how you can add a pattern for the Text Field!

Orchard Core updates

Liquid Tag Disabled by Default

For reliability and performance reasons, the liquid tag has been disabled by default in Liquid templates. To re-enable the liquid tag, you can configure it in your appsettings.json:

{
  "OrchardCore_Liquid": {
    "AllowLiquidTags": true
  }
}

The liquid tag encloses multiple tags within one set of delimiters to allow writing Liquid logic core concisely. Instead of having multiple tags (assign tag, case tag, when tag, and so on), you create a liquid block, and then each new line is a tag. But it makes the parser much more complex and slower because it can't detect the opening delimiters anymore.

Allow to enable Liquid tag

Add a From field to SmsMessage to support sending messages from different phone numbers

Currently, SMS messages are always sent using the phone number configured for the provider. If a provider supports sending messages from multiple numbers, we don't have a way to specify an alternative number.

This change introduces a From field on SmsMessage, allowing messages to be sent from any supported number provided by the SMS provider.

Currently, we can utilize Azure Communication Services and Twilio to send SMS to the users. As you can see, the code now uses the new From property of the SmsMessage class when sending an SMS within the SendAsync method.

Add a From field to SmsMessage

Demos

Pattern for Text Field

To try out this new addition, we used the nightly build of Orchard Core. We created a content type called Vehicle, which has a Vin Text Field to store the Vehicle Identification Number. We also added a Stock Number Text Field. Regarding content parts, we attached a Title Part to this content type. Now we can create new Vehicle content items using this simple editor as you can see in the screen.

Creating a Vehicle content item

Now you have a scenario where you can say that I don't want the stuck number to be an open field, I want to use the last six digits of the VIN. To set up this rule, you can go back to the content editor of the Vehicle content type and edit the content definition of the Stock Number Text Field. Here you can see a new select list called Type. As you can see, it's Editable by default, which is why we can put the value 123 in it. You can see two other options here: Generated Hidden and Generated Disabled.

Let's select the Generated Disabled one. This way, we can actually see the value, but we can't change it. Once you choose it, a Pattern field shows up, allowing you to enter a pattern using Liquid syntax. In this case, we said to find the VIN Text Field and slice it to only have the last 6 digits.

The pattern for the StockNumber field

Now, if we go back to the edit form of our Vehicle content item, you will notice that the StockNumber Text Field is disabled. And once we hit Publish, its value will change. As you can see, it contains the last six digits of the VIN field. The reason it changed is that when we published it, the system recognized it as a generated pattern and applied that pattern during saving.

The generated StockNumber

And as always, you can find a recording on YouTube showcasing this feature by Mike Alhayek!

News from the community

Orchard Harvest 2025 program

The Orchard Harvest 2025 conference will be held in Prague, and we look forward to seeing you all this autumn in the Czech Republic, in the heart of Europe. Our confirmed dates for this year are November 11th and 12th. Secure your early-bird tickets to the conference, taking place November 11-12, 2025, in Prague at the Botanique Hotel Prague, a modern hotel inspired by nature with a green approach in the city centre.

Don't miss this limited-time offer: just $250 for two days of all-access learning and networking. Get your tickets here!

The full Orchard Harvest 2025 program is live! Be sure to check out the updated official website of the conference for the program!

As we move forward, we will keep community members informed of the details, and you will find every detail in this newsletter, too!

Don't miss the biggest Orchard Core event of the year!

Orchard Harvest 2025 program

Orchard Dojo Newsletter

Lombiq's Orchard Dojo Newsletter has 443 subscribers! We have started this newsletter to keep the community around Orchard informed about the latest news on the platform. By subscribing to this newsletter, you will receive an email whenever a new post is published to Orchard Dojo, including 'This Week in Orchard', of course.

Do you know of other Orchard enthusiasts who would like to read our weekly articles? Tell them to subscribe here!

If you are interested in more news about Orchard and the details of the topics above, don't forget to check out the recording of this Orchard meeting!