Jump to content

Repeater Matrix Depth


ferraky
 Share

Recommended Posts

Hey Guys,

Looking for a little help with working with the depth feature on the Repeater Matrix. I am working on building a page builder similar to the one discussed here: https://github.com/ryancramerdesign/ProcessWire/issues/1906.

I am having a hard time looping over the Repeater Matrix and each item at each depth and combining them into a single array to present to the UI. The reason I am trying to push this to an array is because I am converting it to JSON for various Vuejs components that need to be supported.

The structure of the "Builder" is:

  • section: depth 0 - has various options that can be applied to a section of page( background image/color etc...)
  • container: depth 1 
  • row: depth 2 
  • column: depth 3 - has various options for different widths for the column being set up.
  • custom components: depth 4  - CKEditor, slider, whatever custom component that is needed

Hopefully I am making sense explaining this. Any help would be greatly appreciated.

Thanks Ya'll!

Kyle

Link to comment
Share on other sites

  • 1 year later...

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
 Share

×
×
  • Create New...