Ben Croker

@bencroker
108 Followers
18 Following
181 Posts
Craft CMS plugin developer, builder of shiny tools;
modern day drifter, adventurous fool.
Personalhttps://bencroker.com
Workhttps://putyourlightson.com
Playhttps://www.craftcodingchallenge.com
Here’s a teaser of something I’m going to demo in tomorrow’s @craftquest_io livestream. I think you’ll want to see it!
#CraftCMS
https://craftquest.io/livestreams
CraftQuest Casual 07

CraftQuest

This example was shown using the PHP SDK. Not a long-lived connection, but one that stays alive only as long as it needs to.

Configuring the backend to stop processing the request if the browser window is closed as as easy as adding a single line of code.

All Datastar SDKs will soon ship with a “Hello, world!” example that demonstrates fragments being streamed to the browser in a single response–all in just a few lines of code.

Here you can see the DOM updates on the left, and the SSE events being streamed on the right.

Kicked off 2025 by releasing Datastar v1.0.0-beta.1 🚀

After a grueling couple of months, Delaney and I are delighted to finally tag a stable API that is as close to perfection as we can possibly imagine.

Datastar is reactivity made declarative.

Release notes: https://github.com/starfederation/datastar/releases/tag/v1.0.0-beta.1

Release v1.0.0-beta.1 · starfederation/datastar

Happy new 2025! We’ve tied up loose ends, made all final breaking changes to the API and, after a grueling couple of months, we’re delighted to finally release Datastar v1.0.0-beta.1 🚀 After stabil...

GitHub
Sorry Alpine.js, but this is *not* the way. Declarative hypermedia with Datastar is *the* way.
https://data-star.dev/guide/getting_started
Getting Started

Datastar
Preparing a presentation to give at the Vienna #CraftCMS meet-up next week. This one feels very on-topic!!
https://putyourlightson.com/articles/vienna-craft-cms-meetup-2024
Vienna Craft CMS Meetup 2024

This year we’re once again organising a local, in-person meetup to discuss all things Craft. If you’re in and around Vienna and Austria, come join us!

PutYourLightsOn
I love spending time in the Austrian Alps at this time of year. This hike took us along meltwater rivers fed by glaciers above.
🌿 Sprig 2.10.0/3.2.0 for #CraftCMS adds two useful new functions that unlock powerful features of htmx:
1. `sprig.swapOob()` swaps a template out-of-band.
2. `sprig.triggerRefresh()` triggers a refresh on a Sprig component.
See how they work at https://putyourlightson.com/plugins/sprig#sprig-swapoobtarget-templatepath-variables
Sprig – A reactive Twig component framework for Craft.

Live Sprig Training is now available!! To see working examples and video tutorials, visit the Learning Resources. Sprig is a free plugin for Craft CMS…

PutYourLightsOn
Enough people have requested a Blitz sidebar panel on element edit pages that I’ve opened a PR for it. Feel free to add suggestions!
#CraftCMS
https://github.com/putyourlightson/craft-blitz/pull/690
Add sidebar panel to element edit pages by bencroker · Pull Request #690 · putyourlightson/craft-blitz

This PR adds a sidebar panel to element edit pages for elements that have URLs, showing the current cache status of the page (cached/expired/uncached). If the status is cached or expired then a Ref...

GitHub
Starting in T minus 42 minutes!!
https://discord.com/invite/79zvpTXN #CraftCMS
Join the Craft CMS Online Meetup Discord Server!

Check out the Craft CMS Online Meetup community on Discord – hang out with 21 other members and enjoy free voice and text chat.

Discord