Validate HTML Input name in FormInputElement Part, Migrating DotNest.com to Orchard Core case study - This week in Orchard (28/03/2025)
This week's topics include validating the HTML Input name in FormInputElement Part, adding the Rows option for the Text Area widget, and our case study about migrating DotNest's homepage to Orchard Core! Check out our post for the latest news!
Orchard Core updates
Validate HTML Input Name in FormInputElement Part
This addition includes several changes to the OrchardCore.Forms module to improve input validation and enhance the user interface. The most significant changes include adding a new method to sanitize input names, updating the form element part definitions, and modifying the display template for form input elements.
Let's say we have a Page content type with the Flow Part attached. Having the Flow Part allows us to utilize the widgets coming from the Forms module. Our goal is to create a form with a simple text box and a button. As you can see, we have a Form with an Input inside it. There, you can see the updated hint under the HTML Name text box of the Input, which says what the valid characters are that you can use for the HTML input name. Here, we typed "My Input!" as the HTML name, and we got a validation error because the spaces and the exclamation marks are not allowed characters.
Add Rows option for the Text Area widget
And while we are talking about forms, let's see another improvement about adding the Rows option for the Text Area widget. So, we are still editing our Form, but for now, we are using a Text Area instead of a simple Input. As you can see, the editor of the Text Area widget has expanded with a new Rows option, where you can define the number of rows. Here, we said let's use five rows. And as you can see, the rendered Text Area on the form now has five rows.
News from the community
Migrating the homepage of the Orchard Core SaaS DotNest to Orchard Core case study
If you haven't heard about DotNest, it is a SaaS provider that provides hosted Orchard Core web applications (think Wordpress.com for Orchard). This basically means that after registration, you can create Orchard websites on DotNest without worrying about hosting or maintenance. Orchard is always kept up-to-date and in good working order; you just have to use it.
A few weeks ago, we mentioned that DotNest.com now runs on Orchard Core, and we said that our case study would arrive soon. And as we promised, here is the case study of migrating the homepage of the Orchard Core SaaS DotNest to Orchard Core. Check out our case study about how we migrated this site to Orchard Core and what open-source modules we utilized during the migration. With DotNest now running on Orchard Core, we’ve completed our journey of modernizing all our sites.
Are you still running Orchard 1 apps? Contact us to see how we can help you migrate it to Orchard Core, too.
Orchard Dojo Newsletter
Lombiq's Orchard Dojo Newsletter has 457 subscribers! We have started this newsletter to inform the community around Orchard of the latest news about the platform. By subscribing to this newsletter, you will get an e-mail whenever a new post is published in 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!