Craft source code

Live Sprig Training

Learn and improve your Sprig skills from its creator in these live training sessions. Bring your Sprig related questions and gain valuable insights into the inner workings of Sprig and htmx, allowing you to do more with less in Craft CMS.

Sprig training 17 07 2024

Live training sessions take place over group video calls. Joining instructions are sent on the morning of the scheduled call. Recordings are made available to participants and can be purchased separately.

July 17th, 2024 #

In this training session we covered advanced element index pages and lots of things that are undocumented and yet invaluable to know in Sprig.

  • Dealing with duplicate filters using JavaScript.
  • Using the htmx JavaScript API in components.
  • Handling HTTP response errors.
  • Using loading indicators.
  • Faceted filters using entries/categories with element counts.
  • Infinite scroll as an alternative to pagination.

Buy instant access to the recording for $49.

May 15th, 2024 #

In this training session we covered advanced filtering of products and entries using element queries in Sprig.

  • Nested related element filtering (filtering a set of elements based on the related elements of their related elements).
  • Filtering by field values using “and” and “or” logic.
  • Dealing with duplicate filters using namespacing.
  • Deselecting filters from a different parts of the page.
  • Updating values in other components on the page.

Buy instant access to the recording for $49.

February 20th, 2024 #

In this training session we covered controller actions and working with Craft Commerce products and carts using Sprig.

  • Triggering controller actions (saving an entry, user, etc.) and handling success and error responses.
  • Listing and filtering Commerce products.
  • Outputting and managing carts in Commerce.

Buy instant access to the recording for $49.

January 12th, 2024 #

In this training session we covered component variables, possibly the most important concept when working with Sprig.

  • How variables work in Sprig.
  • Removing element query duplication across components.
  • Sending and reading component variables.

Buy instant access to the recording for $49.