ryan Posted October 13, 2023 Share Posted October 13, 2023 There hasn't been a lot of activity on the core this week, as I've been wrapped up in a ProcessWire-based client project (same one as last week). I'd like to put in a few more updates before bumping the version number, which will likely be next week. This week I also released a new module to accommodate a feature that had been requested more than once, but since it's not that commonly needed, I thought it was better to put it in a module rather than the core: Custom Inputfield Attributes for ProcessWire This module enhances both the interactive and API configurability of fields in ProcessWire (both admin and front-end). It can add custom attributes to Inputfields in ProcessWire, FormBuilder, or other Inputfield forms. Custom attributes can be configured interactively in the admin, or they can be added via this module’s API method. Custom attributes can be added to the <input> element of an Inputfield or they can be added to the wrapping .Inputfield element. You can add any attribute that you want (with a few exceptions), whether replacing or appending existing attributes, adding data-* attributes or any other named attribute. This module is available for download now on GitHub with more details on the module info page. Thanks for reading and have a great weekend! 22 3 Link to comment Share on other sites More sharing options...
cb2004 Posted October 13, 2023 Share Posted October 13, 2023 You have done it again. I need a feature for a site and there you go and add it. Have a good weekend Sir. 4 Link to comment Share on other sites More sharing options...
elabx Posted October 19, 2023 Share Posted October 19, 2023 @ryan Out of curiosity, and of it's possible to share publicly, were you working in something in particular in the PW admin where you needed to add custom attributes? 1 Link to comment Share on other sites More sharing options...
dotnetic Posted October 19, 2023 Share Posted October 19, 2023 This opens up so many possibilities for example for working with htmx or alpine.js. Thank you Ryan. 6 Link to comment Share on other sites More sharing options...
Fuzen Posted October 20, 2023 Share Posted October 20, 2023 You rock @ryan Link to comment Share on other sites More sharing options...
gornycreative Posted October 21, 2023 Share Posted October 21, 2023 So is this something you might use to, say, incorporate form validation libraries on the front-end that are client-side, or perhaps run other scripted enhancements? HTMX attributes? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now