invisible material with shadow

How to make a material, which is invisible but can have other object’s shadows on it? I’m making a composite with video background, and a 3d text should hang on a wall. So I need the shadow of the text to appear in the real wall.

In the materials context (F5) -> Shaders tab, turn on the OnlySha[dow] button.

Thanks! Problem solved!