Have experimented, without luck, using snippets to hold different bits of php code...This would be the way to do it. You would need to create snippets for the php bits and use placeholders to display the data. You could make a module in the manager to have an administration of the data.