cancel
Showing results for 
Search instead for 
Did you mean: 

Best approach of creating a repeatable category attribute fieldset

Best approach of creating a repeatable category attribute fieldset

I am new to using Magento I am currently working on understanding the EAV model. So far I am able to implement the basic attribute types Magento provides out of the box, but now I want to implement a repeatable field group containing 2 fields. The functionality would be that you can add links to a category as an attribute.

 

The repeating field group would contain 2 fields, a text field and a link field. Both can just be of type text. Also, outside the field group I need a button a add new row, which will add a new text field and link field

 

An attribute is saved as one value, So I assume I need to collect all the data from the repeater fields and save them as a JSON. 

When the data is loaded, it should build up the fields according to that JSON data from the attribute.

But what would be the correct Magento way to implement this? I can hardly find any documentation on how to modify EAV field render behavior, save behavior and load behavior.