davidfcarr,
@davidfcarr@nerdculture.de avatar

Got "block transforms" working in for for one-click transformation of event listings to a version based on the Query Loop block (my variation, with or without a calendar grid). Allows for much greater design freedom.

One victory: figuring out how to turn a single block into a templated result including multiple blocks. Required some digging into the scant documentation on a JS function called createBlocksFromInnerBlocksTemplate.

https://rsvpmaker.com/blog/2024/04/14/dazzling-design-for-events-wordpress/

davidfcarr,
@davidfcarr@nerdculture.de avatar

Here's the block transforms code I used to turn a single block into a Query Loop block with innerBlocks for the Post Template. The documentation covers the case of converting one block with innerBlocks to another. Here, I had to create the innerBlocks option using a template (similar to the process of creating a multi-block block variation) https://gist.github.com/davidfcarr/e6336ef4fa255d9034d7bab6e3a08e56

  • All
  • Subscribed
  • Moderated
  • Favorites
  • wordpress
  • DreamBathrooms
  • magazineikmin
  • cubers
  • everett
  • rosin
  • Youngstown
  • ngwrru68w68
  • slotface
  • osvaldo12
  • Durango
  • kavyap
  • InstantRegret
  • tacticalgear
  • khanakhh
  • megavids
  • GTA5RPClips
  • normalnudes
  • thenastyranch
  • mdbf
  • ethstaker
  • modclub
  • Leos
  • tester
  • provamag3
  • cisconetworking
  • anitta
  • JUstTest
  • lostlight
  • All magazines