Drupal - Node hierarchy - sub module request

The client needed a custom module.. but I solved the problem without creating any module.