TTSite
is a Catalyst View that wraps every TT template we use in a header and footer. This all happens transparently, so we can add some prettiness to our site without writing any CSS or HTML.
There are a few differences from the standard TT view to be aware of. First, templates are stored in /root/src
instead of /root
. TTSite keeps its configuration in /root/lib
, so that's where you'll want to go if you want to change the look of the site. The configuration is easy to understand—the file called header
contains the TT commands that will be added to the header of the page (and so on).
For this application, we do need to make a few modifications to the default setup. First, let's remove the default "message" (to display at the top of the page), so we can specify our own from a controller.
To do this, edit /root/lib/config/main
, removing the block of code that looks like this:
# set defaults for variables, etc. DEFAULT message = 'There is no message';
Next, we'll edit the template that...