Jump to content
kongondo

The Brad Field - Proof of Concept

Recommended Posts

The Bard field in Statamic has been been discussed and mentioned several times in the forums, dating all the way back to 2018, as something worth emulating in ProcessWire. Here is a short demo of a proof of concept of an unimaginatively (temporarily?) named (and very colourful) module doing just that.

Demo

App running outside ProcessWire.

 

Screenshot

Screenshot of the app in InputfieldBrad, running in a modal, quirks and all.

brad_demo.thumb.png.9634791f1ae75436aff6a3a274d042d2.png

 

Way Forward

I don't know but no current plans for any sort of release, paid or otherwise. I like where @flydev 👊🏻 is headed with FieldtypeEditorJs so let's support that 😄.

  • Like 12

Share this post


Link to post
Share on other sites

Ok this one is mindblowing, looks like a perfect upgrade from the solution I'm currently using.

I'm getting by with a repeater and a modded version of FieldtypeSelectFile that basically lets you select a php from a given content blocks directory, assumes there's a png that goes with it, and renders a neat block selector. From there, it's just hiding and showing fields depending on the value of that selector. It's not the most elegant of solutions from the "setting up" perspective, but quite nice and comprehensive for the editor and the php code on the frontend super understandable.

Brad seems to try to do just enough. Looks great for custom, controlled content blocks. Too much freedom and the editor usually makes a mess 🙂

content-blocks.png

  • Like 5

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...