Skip to content

Docs: Archive Indices

Morgan Aldridge edited this page Dec 27, 2019 · 2 revisions

Archive Indices

Archive Indices define a grouping of pages which will be ordered chronologically and contain both chronological and categorical archives. Each Archive Index has the following settings & options:

Label

The label must be unique, but is generally only used internally to identify multiple Archive Indices.

Page

The page is any non-root page which will act as the index page listing child pages and linking to programmatically-generated chronological & categorical archive pages. This cannot be the root page due to limitations of Rails routing.

Datetime Fragment

Each child page of the index page must have a datetime field which defines the chronological order of the pages since Comfortable Mexican Sofa doesn't have one built in. This must be defined as a datetime tag in the pages' layout.

Force Render Page

Archive Indices are automatically rendered using the index view found in app/views/comfy/archive/, but you have the option to force that page to just be rendered as the page normally would by checking the 'Force render page' checkbox. This allows for customization of the layout and navigation beyond just editing the index view by editing the layout of the page.