With the rewrite of the 'default' template set, we've also cleaned out a lot of the old globals that contained style information. This document will describe the new globals used in the luna template set.
The new globals.txt mainly contains options which control the output of certain aspects of the template. Here's a description of what each global does:
Adrian
The new globals.txt mainly contains options which control the output of certain aspects of the template. Here's a description of what each global does:
- category_cols (default value: 2): This value controls the number of columns that will be displayed in category.html. If you change this value, then you must remember to also change the "#category dl" CSS rule to reflect this change.
- category_separator (default value: ' > '): This is the text that will be inserted in between each category in a category title. This value is html escaped by default, so if you want to use html, then add a no_escape_category_separator global with a value of '1'.
- crumb_separator (default value: ' > '): This is the same as category_separator except it is used for the 'bread crumb'. To use html in this value, create a no_escape_crumb_separator global.
- detailed_max_reviews (default value: 5): This value limits the maximum number of reviews to display on a link's detailed page.
- home_category_cols (default value: 2): This is the same as category_cols, except this is for the columns on the home page. Remember to change the corresponding "#home dl" CSS rule.
- paging_options: See the Customising the paging toolbar HOWTO for detailed information.
- site_title (default value: 'Gossamer Links'): This value is used in various places, for example in the title of each page.
Adrian