CSS Page Classes

The content area of each page in a Pawtucket theme is wrapped in a tag with the CSS class pageArea’. This tag is emitted by the page header view (pageFormat/pageHeader.php). Other classes are added to this depending upon the page type and context. Use these classes to tailor the theme stylesheet.

Page- and context-specific classes are summarized below. Literal class names are shown as-is. Variable class names are in <brackets>.

Front Page

Class

Notes

front

Front page always has a single “front” class

Detail Pages

Class

Notes

detail

All detail pages always have “detail” class.

<table>

Class indicating kind of detail being rendered. Will be one of: ca_objects, ca_entities, ca_places, ca_occurrences, ca_collections.

<type>

Class indicating type of item being rendered in detail. Will be a valid object/entities/place/occurrence/collection type code for your installation. Ex. Document

<name>

The name of the detail being rendered, as configured in detail.conf. The value is the unique “name” code configured on the left side of the = in the detailTypes block.

Browse Pages

Class

Notes

browse

All browse pages always have “browse” class.

<table>

Class indicating kind of item being browsed. Will be one of: ca_objects, ca_entities, ca_places, ca_occurrences, ca_collections.

<name>

The name of the browse being rendered, as configured in browse.conf. The value is the unique “name” code configured on the left side of the = in the browseTypes block.

<view>

Class indicating the results view type. Will be one of: image, list, timeline, map.

Search Pages

Class

Notes

search

All search pages always have “search” class.

<table>

Class indicating kind of item being searched. Will be one of: ca_objects, ca_entities, ca_places, ca_occurrences, ca_collections.

<name>

The name of the search being rendered, as configured in search.conf. The value is the unique “name” code configured on the left side of the = in the searchTypes block.

<view>

Class indicating the results view type. Will be one of: image, list, timeline, map.

Multisearch

Class

Notes

multisearch

All multi search pages always have “multisearch” class.

List

Class

Notes

list

All list pages always have “list” class.

Login/Registration

Class

Notes

loginreg

All login and registration pages always have “loginreg” class.