I don't quite understand either but if you just want a pivoting low voltage electrical connection between the door and frame, put positive on one door hinge, negative on a 2nd door hinge, these insulated from the door and/or frame itself if they're metal, and clean all grease off the hinge pins, lubricating them with graphite instead, and obviously running +/- from the two hinges, to the powered thing in the door itself.
Why you need power into a door for a door bell? I have no idea, that's not usually how it's done. Doorbell is usually in the frame next to the door. Manual/mechanical door buzzer is in door itself, "sometimes".