template + media integration