I have used the renderChunk for the first time to have functionality of MIGX inside MIGX.
I have a formtab json something like this: main MIGX
[
{
"caption": "Work Info",
"fields": [
{
"field": "title",
"caption": "Project Title"
},
{
"field": "categories",
"caption": "Categories",
"inputTV": "checkbox"
},
{
"field": "image",
"caption": "Image (900W x 600H)",
"inputTV": "image"
}
]
},
{
"caption": "Sub Images",
"fields": [
{
"field": "subImages",
"caption": "Sub Images",
"inputTV": "our_works_subimages",
"renderer": "this.renderChunk"
}
]
}
]
Then i have a formtab json something like this: sub MIGX
[
{
"caption": "Sub Images",
"fields": [
{
"field": "title",
"caption": "Title"
},
{
"field": "subimage",
"caption": "Image (900W x 600H)",
"inputTV": "subimage"
}
]
}
]
The chunk render pretty well, but the only problem is the image path is not in the full path for the Sub Images inside sub-MIGX, then image on the main MIGX renders path correctly. The right path is something like this "/folder/images/work/img.jpg", this is the correct path, but the subimage renders path like this "work/img.jpg". I used Media Source for image TV. How can i fix this problem? Thanks ;-)