Tobbe @Angelina exactly like Tobbe showed you in the link. The cage is fixes at the piercing or, as in most case) a stick from the cages gors into the piercinghole and additionally holds the tube there.
I personally wouldn't do that because when you urinate the flow can also go through the piercing hole and ... yeah... make things difficult. It one doesn't trust normale cages - just get a belt.