Torrus Styling Profile Guide

Styling Profiles

Styling profiles allow for symbolic names to be used in place of hard coded values for line-color and line-style.

Schema Definitions

The following styles are defined in the default schema.

Schema Overlay

WARNING: Some styles are mandatory

Schema overlays allow the user to extend or override the styles defined in the default schema. The schema overlays are formatted in the form of a hash of hashes.

Schema Replacement

To replace a schema, create a new schema using torrus-schema.pl as a guide. Remember some styles are mandatory.

1. Applying your Schema

In the torrus-siteconfig.pl file, add the variable

  $Torrus::Renderer::stylingProfile = "Your-schema";
2. Restart apache

You may have to wait for the image cache to clear before the changes take effect.

Author

Copyright (c) 2003 Shawn Ferry