Big improvements arrived to the Liquid Markup module

Our Liquid Markup Orchard module now got a lot smarter! The module enables you to create templates (from the admin or from code) in which you can use the Liquid Markup language. This is a bit more restrictive than e.g. Razor what you may usually work with when developing Orchard. However still it's quite powerful and now we have the following new features:

  • Variables, not just fixed strings can be used when passing parameters to tags. So e.g. you can create a custom dynamic title for your pages.
  • Accessing items of collections in the view model are now supported. E.g. from a template now you can selectively display the second and third image attached to a content item, not just the first one as before.
  • The antiforgery token can now be displayed so you can write completely custom forms.
  • Orchard-aware relative links can be easily constructed, so you can construct dynamic URLs that will work in any environment.
  • Custom link and meta tags can be registered. This way e.g. you can add multiple shortcut icons for your site or add custom meta tags for Facebook sharing.
  • Custom CSS classes can be added to shapes to improve how you can style those elements. Furthermore CSS classes can now also be added to the HTML document.

For the whole list of features and examples covering every scenario take a look at the module's Readme. The modules is also available on all sites of DotNest, the Orchard SaaS.

Did you get some inspiration to try Liquid? It's a safe templating language, you can even give it to non-developers. Check out the module on GitHub!

zoltan.lehoczky Orchard module Release Liquid Markup

Other recent posts