Give for all template children with controller or Middleware the Parent ID
<div kll-tc="media" kll-l>
<div kll-tc="foo"></div>
</div>
Exemple
// ctrl/foo.js
export const foo = {
onInit(state, el) {
// You can use directly el.lId
const { media_id } = kll.getLegacyState(el)
// Make thing
}
}