define-pages aren't intended to be sucked into sideboxes, which is why using file_get_contents() isn't working for you.
If you're comfortable taking the security risks posed by using eval(), you might consider wrapping eval() around your call to file_get_contents() so that its content is treated like PHP code, similar to how an include works normally when not stuffing its content into a variable.



