What's new Release Details

Custom Liquid Templates Released

Posted by Vidar Eldoy on January 8, 2018

Custom templates

We're very excited to announce that custom templates have now been released. This means that every page on your site can be customized just the way you like it. In fact, it's so powerful that you can completely rewrite your site into whatever you like, it doesn't even have to be about crowdfunding! The custom templates are based on Liquid, a template language created by Shopify, which is fast, easy and secure.

On top of Liquid we've written our own database engine so you can easily access your data and display them on your site.

How it works

The source code for all your site's templates, including the campaign pages, badges, contribution pages, payment pages, scripts, styles, layouts and more can now be customized. When you create a site, just go to the Design tab to start editing using our online editor. The Liquid language has support for variables, if-else statements, for-loops and anything else you'd expect from a modern template language.

Here's the site source code.

The Liquid language has lots of built in filters, and we've added many more on top. It's easy to transform strings, numbers and dates. Each data model has its own "drop", which has methods you can use for convenience. We've created all the tools you need, now it's up to you to use them. There is support for parameters, request data, notifications and security options as well.

The database model complements the existing API, and can be used for advanced data queries. You can fetch records with sorting, scopes, limits, pagination, counting and much more. Check out the documentation on custom templates to learn more.

Emails are also Liquid

We've updated all emails to support Liquid as well, so you can take full advantage of the data models included in each email. Want to display all contributions for a campaign, or a list of rewards for a campaign in your emails? No longer a problem.

Upgrading existing sites

All existing sites have already been upgraded to use Liquid, including your pages and emails. It just works.

Other updates in this release

This release also includes a few fixes:

  • Added autoconvert option to pages to optionally convert links to embedded videos and HTML
  • Reset links for forgot password now works for only 15 minutes
  • Pagseguro now has support for delayed bank payments (boleto)
  • Title for custom categories on the home page displays correctly
  • Refund dialog in Manage Site has a new no-notify checkbox to avoid sending refund emails
  • The language select filter (option_list) in Stripe payments now has support for defaults
  • Included the campaign name and link in contribution exports
  • Custom fields can now be searched in database lookups

Feedback please

As usual, thanks to everyone reporting issues. We've been working on the new features for over a year, let us know what you think. Please don't hesitate to ask if you're wondering about how to use it or how it works. Happy Crowdfunding in 2018!