It is similar to Customizing the View Mode in Using Rendering Styles in the Infrastructure User's Guide.