Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Import/Export or Cloning of Matrix/Super Table blocks and block types #56

Open
proimage opened this issue Dec 10, 2018 · 9 comments

Comments

@proimage
Copy link

I've got a Matrix field used as a typical modular page builder. In each block of the Matrix field—besides the block's unique fields—I've got a static Super Table field with some common "settings"-style fields—BG color, block padding & margin, etc. For each and every Matrix block that I create, I need to recreate that same static Super Table field with its sub-fields and all their settings—tedious.

I'd love if Field Manager could help with this somehow, with the ability to replicate fields inside Matrix blocks... or perhaps if Super Table itself had an export/import function.

@engram-design
Copy link
Member

Field Manager should certainly already support for this, so if its not working, I'd say that's a bug. We'll look into it.

@proimage
Copy link
Author

Really? Where would this feature be found? Obviously I see where to replicate an entire "top-level" Matrix field, but I'm after more granular control...

@engram-design
Copy link
Member

Oh, I might have misunderstood. Matrix+Super Table cloning should be supported right now, but as for duplicating specific blocks within those, I'm not sure if that'll ever make it into the plugin. Maybe one day, but no immediate plans!

As an aside - I think this'll become way easier to manage with Craft 3.1's concept of project configs - where you can create a Yaml file of your field's (and a lot more), which makes it much of a copy/paste job.

@919Studios
Copy link

Good afternoon.

Overall, Field Manager is an awesome addition to Craft. My only wish is that it could see the contents of a Matrix with many nested items. Would you suggest exporting the JSON, manually editing and re-importing to get our nested items visible? If field manager cannot solve that, How do you recommend working with very large Matrix setups with many nested items? Thank you in advance for your help - I really appreciate it!

itsCoolButFieldManagerCouldBeMoreUseful

@engram-design
Copy link
Member

@919Studios Can you confirm what you mean be "see the contents of a Matrix field"? In your screenshot, you'll only see the top-level field, and not the nested fields. To do that, you'd need to click on the field name to edit. This is exactly how the normal field editing works.

Or - are you saying that when importing a Matrix field, the nested fields are missing?

@919Studios
Copy link

Hi Josh @engram-design Check out my screenshot. You have this very cool view that you are demonstrating in your example (SEE SCREENSHOT)

fieldOverviewTableLayout-HowTo

I think the view you have would be really useful. In terms of Field Managers features with exporting and importing it works perfectly... if i could just get that view you have… Thank you again for your help with this Josh you make fantastic craft plugins man!

@919Studios
Copy link

@engram-design I just grabbed a quick screenshot of what the import looks like for this parent matrix. Everything gets imported perfectly........ If this screen included options for all the nested fields… that would make this plugin even more awesome and would be an incredible productivity feature for this plugin.

importScreen-op2-

@engram-design
Copy link
Member

@919Studios My screenshot shows only top-level fields. The field group is called "Fieldtypes Tests", with an assets field called "Assets", a categories field called "Categories", etc. Matrix field's don't show their blocks and nested fields, but agreed that this can be a feature request (although, It'd be great if this was a separate issue, because its a little different from the original post). As such, what you're seeing is expected - you only have a single field in your install, a matrix field called "Modules" right?

And point taken on the second request on importing blocks/fields, good idea.

@919Studios
Copy link

@engram-design Thanks again for your help Josh, I see what you are saying now… If I was to take all of the fields out of that matrix, field manager would see each and every one of them, I get it now.

As you asked, I created a seperate issue for this feature request, if you get time to implement that view, Ill buy a Verbb t-shirt :-)

Keep up the good work man, this plugin is awesome.

@engram-design engram-design changed the title Feature Request: Import/Export or Cloning of Matrix/Super Table fields Feature Request: Import/Export or Cloning of Matrix/Super Table blocks and block types Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants