Home › Forums › Add-ons › Repeater Field › Use InnerBlocks inside Repeater field › Reply To: Use InnerBlocks inside Repeater field
sorry for late reply. yes. according to acf6 you now should use register_block_type (instead of acf_register_block_type) and load the block.json file. Example:
{
"name" : "lmdm/tabitem",
"title" : "Tab-Inhalt",
"description" : "Tab-Inhalt",
"category" : "widgets",
"icon" : "<svg width=\"80px\" height=\"80px\" viewBox=\"0 0 80 80\" xmlns=\"http://www.w3.org/2000/svg\">\n <g id=\"icon-tab-item\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <path d=\"M31.0453442,11.6287145 L31.0453442,27 L75,27 L75,75 L5,75 L5,27 L10.2507421,27 L10.2507421,11.6287145 L31.0453442,11.6287145 Z\" id=\"Rectangle\" stroke=\"#000000\" stroke-width=\"4\"></path>\n <rect id=\"Rectangle\" fill=\"#000000\" x=\"13\" y=\"35\" width=\"54\" height=\"32\"></rect>\n </g>\n</svg>",
"keywords" : ["tabs","navi","accordion","accordeon"],
"parent" : ["lmdm/tabgroup"],
"supports" : {
"align" : false,
"align_text" : true,
"multiple" : true,
"color" : {
"background": false
},
"jsx" : true
},
"acf": {
"mode": "preview",
"renderTemplate": "index.php"
}
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.